summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fetchmail-model.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/fetchmail-model.lua b/fetchmail-model.lua
index e8aff0a..0ab4a3d 100644
--- a/fetchmail-model.lua
+++ b/fetchmail-model.lua
@@ -460,7 +460,11 @@ function updateconfig(self, conf)
for line in string.gmatch(file, "([^\n]*\n?)") do
if not foundpostmaster and string.match(line, "^%s*set%s+postmaster%s") then
foundpostmaster = true
- line = "set postmaster "..conf.value.postmaster.value.."\n"
+ if conf.value.postmaster.value ~= "" then
+ line = "set postmaster "..conf.value.postmaster.value.."\n"
+ else
+ line = nil
+ end
elseif not foundbounceerrors and string.match(line, "^%s*set%s+no%s+bouncemail%s") then
foundbounceerrors = true
if conf.value.bounceerrors.value then