From ec1af8e1ede7e9bb4b56bba7bd6fcdf18d082aa8 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sun, 24 May 1998 01:55:39 +0000 Subject: Added idfile. svn path=/trunk/; revision=1818 --- fetchmailconf | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'fetchmailconf') diff --git a/fetchmailconf b/fetchmailconf index 984f3e7e..2a047299 100755 --- a/fetchmailconf +++ b/fetchmailconf @@ -18,6 +18,7 @@ class Controls: self.daemon = 300 # Default to 5-minute timeout self.syslog = FALSE # Use syslogd for logging? self.logfile = None # No logfile, initially + self.idfile = None # Default idfile, initially self.invisible = FALSE # Suppress Received line & spoof? def __repr__(self): @@ -26,6 +27,8 @@ class Controls: str = str + ("set syslog\n") elif self.logfile: str = str + ("set logfile \"%s\"\n" % (self.logfile,)); + if self.idfile: + str = str + ("set idfile \"%s\"\n" % (self.idfile,)); if not self.foreground and self.daemon: str = str + ("set daemon %s\n" % (self.daemon,)) return str + "\n" @@ -417,6 +420,10 @@ Logfile Otherwise this gives the name of the files to write to. This field is ignored if the "Log to syslog?" option is on. +Idfile + If empty, store seen-message IDs in .fetchids under user's home + directory. If nonempty, use given file name. + Invisible: If false (the default) fetchmail generates a Received line into each message and generates a HELO from the machine it is running on. @@ -448,6 +455,8 @@ class ControlEdit(Frame): self.syslog.set(self.controls.syslog); self.logfile = StringVar(self) if self.controls.logfile: self.logfile.set(self.controls.logfile); + self.idfile = StringVar(self) + if self.controls.idfile: self.idfile.set(self.controls.idfile); self.invisible = BooleanVar(self) self.invisible.set(self.controls.invisible); @@ -491,12 +500,17 @@ class ControlEdit(Frame): 'variable':self.invisible, 'relief':GROOVE}).pack(side=LEFT, anchor=W) + # Set the idfile + log = LabeledEntry(gf, ' Idfile:', self.idfile, '14') + log.pack(side=RIGHT, anchor=E) + gf.pack(fill=X) def GatherControls(self): self.controls.daemon = self.daemon.get() self.controls.foreground = self.foreground.get() self.controls.logfile = self.logfile.get() + self.controls.idfile = self.idfile.get() self.controls.syslog = self.syslog.get() self.controls.invisible = self.invisible.get() -- cgit v1.2.3