Commit 19494ade authored by Mika Havela's avatar Mika Havela
Browse files

Added a empty mailbox-item so the page doesn't look funny when there is no config.

git-svn-id: svn:// ab2d0c66-481e-0410-8bed-d214d4d58bed
parent dce730f2
......@@ -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>
if (string.match(v, "^%s*#End Fetchmail")) then valid=nil end
-- Create one empty record so that user can add settings
return mailboxes,configcontent_postmaster,configcontent_etrn
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment