diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2000-12-12 04:10:56 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2000-12-12 04:10:56 +0000 |
commit | c4432b4997d1819dbfd289ba42050e20927bde08 (patch) | |
tree | ee783faef2c11861e8b0361a9c5839100063451b /fetchmailconf | |
parent | 6113a3f6da6b0fc667c9f56b99ad5c6419947b1c (diff) | |
download | fetchmail-c4432b4997d1819dbfd289ba42050e20927bde08.tar.gz fetchmail-c4432b4997d1819dbfd289ba42050e20927bde08.tar.bz2 fetchmail-c4432b4997d1819dbfd289ba42050e20927bde08.zip |
Spambounce patch.
svn path=/trunk/; revision=2998
Diffstat (limited to 'fetchmailconf')
-rwxr-xr-x | fetchmailconf | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/fetchmailconf b/fetchmailconf index ef295ce6..83e319a8 100755 --- a/fetchmailconf +++ b/fetchmailconf @@ -20,6 +20,7 @@ class Configuration: self.idfile = os.environ["HOME"] + "/.fetchids" # Default idfile, initially self.postmaster = None # No last-resort address, initially self.bouncemail = TRUE # Bounce errors to users + self.spambounce = FALSE # Bounce spam errors self.properties = None # No exiguous properties self.invisible = FALSE # Suppress Received line & spoof? self.syslog = FALSE # Use syslogd for logging? @@ -30,6 +31,7 @@ class Configuration: ('idfile', 'String'), ('postmaster', 'String'), ('bouncemail', 'Boolean'), + ('spambounce', 'Boolean'), ('properties', 'String'), ('syslog', 'Boolean'), ('invisible', 'Boolean')) @@ -48,6 +50,10 @@ class Configuration: str = str + ("set bouncemail\n") else: str = str + ("set nobouncemail\n") + if self.spambounce: + str = str + ("set spambounce\n") + else: + str = str + ("set nospambounce\n") if self.properties != ConfigurationDefaults.properties: str = str + ("set properties \"%s\"\n" % (self.properties,)); if self.poll_interval > 0: @@ -640,6 +646,11 @@ Bounces to sender? If this option is on (the default) error mail goes to the sender. Otherwise it goes to the postmaster. +Send spam bounces? + If this option is on, spam bounces are sent to the sender or + postmaster (depending on the "Bounces to sender?" option. Otherwise, + spam bounces are not sent (the default). + Invisible If false (the default) fetchmail generates a Received line into each message and generates a HELO from the machine it is running on. @@ -728,6 +739,13 @@ class ConfigurationEdit(Frame, MyWidget): 'relief':GROOVE}).pack(side=LEFT, anchor=W) pf.pack(fill=X) + sb = Frame(gf) + Checkbutton(sb, + {'text':'send spam bounces?', + 'variable':self.spambounce, + 'relief':GROOVE}).pack(side=LEFT, anchor=W) + sb.pack(fill=X) + sf = Frame(gf) Checkbutton(sf, {'text':'Log to syslog?', |