diff options
Diffstat (limited to 'fetchmail-model.lua')
-rw-r--r-- | fetchmail-model.lua | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/fetchmail-model.lua b/fetchmail-model.lua index 330e68f..075ae77 100644 --- a/fetchmail-model.lua +++ b/fetchmail-model.lua @@ -108,10 +108,7 @@ pool <host> protocol etrn smtpdomain <mydomain> for k,v in pairs(configcontenttable) do if (string.match(v, "^%s*#Begin Fetchmail")) then valid=1 end if (valid) then --- if not (configcontent[k]) then configcontent[k] = {} end --- if not (configcontent_popimap[k]) then configcontent_popimap[k] = {} end --- if not (configcontent_popdomain[k]) then configcontent_popdomain[k] = {} end - + -- local DISABLED = string.match(v, "^%s*(#)") -- Set parameters for POP3 or IMAP @@ -176,10 +173,11 @@ pool <host> protocol etrn smtpdomain <mydomain> configcontent_postmaster=configcontent[k] end - end if (string.match(v, "^%s*#End Fetchmail")) then valid=nil end end + -- Create one empty record so that user can add settings + table.insert(mailboxes,getmailboxes({})) return mailboxes,configcontent_postmaster,configcontent_etrn end |