From 580682dcaae8305ac9ca9c5e1011ef963d86f5d1 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Fri, 16 Oct 1998 13:01:06 +0000 Subject: Now we can use --limit with daemon mode. svn path=/trunk/; revision=2091 --- fetchmailconf | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'fetchmailconf') diff --git a/fetchmailconf b/fetchmailconf index 6b7f0cd4..22fddfd5 100755 --- a/fetchmailconf +++ b/fetchmailconf @@ -194,6 +194,7 @@ class User: self.mimedecode = FALSE # Undo MIME armoring self.dropstatus = FALSE # Drop incoming Status lines self.limit = 0 # Message size limit + self.warnings = 0 # Size warning interval self.fetchlimit = 0 # Max messages fetched per batch self.batchlimit = 0 # Max message forwarded per batch self.expunge = 1 # Interval between expunges (IMAP) @@ -217,6 +218,7 @@ class User: ('mimedecode', 'Boolean'), ('dropstatus', 'Boolean'), ('limit', 'Int'), + ('warnings', 'Int'), ('fetchlimit', 'Int'), ('batchlimit', 'Int'), ('expunge', 'Int')) @@ -261,6 +263,8 @@ class User: str = str + flag2str(self.dropstatus, 'dropstatus') if self.limit != UserDefaults.limit: str = str + " limit " + `self.limit` + if self.warnings != UserDefaults.warnings: + str = str + " warnings " + `self.warnings` if self.fetchlimit != UserDefaults.fetchlimit: str = str + " fetchlimit " + `self.fetchlimit` if self.batchlimit != UserDefaults.batchlimit: @@ -1203,6 +1207,8 @@ class UserEdit(Frame, MyWidget): Label(limwin, text="Resource Limits").pack(side=TOP) LabeledEntry(limwin, 'Message size limit:', self.limit, '30').pack(side=TOP, fill=X) + LabeledEntry(limwin, 'Size warning interval:', + self.warnings, '30').pack(side=TOP, fill=X) LabeledEntry(limwin, 'Max messages to fetch per poll:', self.fetchlimit, '30').pack(side=TOP, fill=X) LabeledEntry(limwin, 'Max messages to forward per poll:', -- cgit v1.2.3