aboutsummaryrefslogtreecommitdiffstats
path: root/fetchmailconf
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1998-06-03 20:05:54 +0000
committerEric S. Raymond <esr@thyrsus.com>1998-06-03 20:05:54 +0000
commitef5e03c1d9db10fa76998f4d689eba3983b7b792 (patch)
tree06a656b1a110f0eb2013c11e1d73758466218b88 /fetchmailconf
parent7b9ce4568724dd2cf96da19f04214021b32e54e0 (diff)
downloadfetchmail-ef5e03c1d9db10fa76998f4d689eba3983b7b792.tar.gz
fetchmail-ef5e03c1d9db10fa76998f4d689eba3983b7b792.tar.bz2
fetchmail-ef5e03c1d9db10fa76998f4d689eba3983b7b792.zip
daemon fix.
svn path=/trunk/; revision=1883
Diffstat (limited to 'fetchmailconf')
-rwxr-xr-xfetchmailconf10
1 files changed, 5 insertions, 5 deletions
diff --git a/fetchmailconf b/fetchmailconf
index 28c3a790..c17f80c5 100755
--- a/fetchmailconf
+++ b/fetchmailconf
@@ -7,7 +7,7 @@
#
# Version 0.90 beta: Tue May 26 12:00:49 EDT 1998
# Version 0.91 beta: Tue Jun 2 12:23:42 EDT 1998
-# Version 0.92 beta: Tue Jun 2 14:50:31 EDT 1998
+# Version 0.92 beta: Wed Jun 3 14:17:03 EDT 1998
#
# TO DO: Arrange for save and quit buttons to clean up all frames dependent
# on the current ones.
@@ -25,14 +25,14 @@ import socket
#
class Configuration:
def __init__(self):
- self.poll_interval = 300 # Default to 5-minute timeout
+ self.poll_interval = 0 # Normally, run in foreground
self.syslog = FALSE # Use syslogd for logging?
self.logfile = None # No logfile, initially
self.idfile = os.environ["HOME"] + "/.fetchids" # Default idfile, initially
self.invisible = FALSE # Suppress Received line & spoof?
self.servers = [] # List of included sites
Configuration.typemap = (
- ('poll_interval', 'String'),
+ ('poll_interval', 'Int'),
('syslog', 'Boolean'),
('logfile', 'String'),
('idfile', 'String'),
@@ -46,8 +46,8 @@ class Configuration:
str = str + ("set logfile \"%s\"\n" % (self.logfile,));
if self.idfile != ConfigurationDefaults.idfile:
str = str + ("set idfile \"%s\"\n" % (self.idfile,));
- if self.poll_interval != ConfigurationDefaults.poll_interval:
- str = str + ("set daemon %s\n" % (self.poll_interval,))
+ if self.poll_interval > 0:
+ str = str + "set daemon " + `self.poll_interval` + "\n"
for site in self.servers:
str = str + repr(site)
return str