aboutsummaryrefslogtreecommitdiffstats
path: root/fetchmailconf
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1998-10-20 03:42:34 +0000
committerEric S. Raymond <esr@thyrsus.com>1998-10-20 03:42:34 +0000
commit3299270c28441b9d01a24da727eeaa6553c4d7aa (patch)
treeacb7dfb272b49042adc4fcc77a0be66fc47adc0c /fetchmailconf
parent72c64d14268791f79834befe8700a3fd633bd5b9 (diff)
downloadfetchmail-3299270c28441b9d01a24da727eeaa6553c4d7aa.tar.gz
fetchmail-3299270c28441b9d01a24da727eeaa6553c4d7aa.tar.bz2
fetchmail-3299270c28441b9d01a24da727eeaa6553c4d7aa.zip
Added the `properties' option.
svn path=/trunk/; revision=2114
Diffstat (limited to 'fetchmailconf')
-rwxr-xr-xfetchmailconf20
1 files changed, 13 insertions, 7 deletions
diff --git a/fetchmailconf b/fetchmailconf
index 74302b90..d0e69674 100755
--- a/fetchmailconf
+++ b/fetchmailconf
@@ -198,6 +198,7 @@ class User:
self.fetchlimit = 0 # Max messages fetched per batch
self.batchlimit = 0 # Max message forwarded per batch
self.expunge = 1 # Interval between expunges (IMAP)
+ self.properties = None # Extension properties
User.typemap = (
('remote', 'String'),
# leave out mailboxes and localnames
@@ -221,7 +222,8 @@ class User:
('warnings', 'Int'),
('fetchlimit', 'Int'),
('batchlimit', 'Int'),
- ('expunge', 'Int'))
+ ('expunge', 'Int'),
+ ('properties', 'String'))
def __repr__(self):
str = " "
@@ -271,6 +273,8 @@ class User:
str = str + " batchlimit " + `self.batchlimit`
if self.expunge != UserDefaults.expunge:
str = str + " expunge " + `self.expunge`
+ if self.properties != UserDefaults.properties:
+ str = str + " properties " + `self.properties`
str = str + "\n"
trimmed = self.smtphunt;
if trimmed != [] and trimmed[len(trimmed) - 1] == "localhost":
@@ -1229,14 +1233,16 @@ class UserEdit(Frame, MyWidget):
self.fetchlimit, '30').pack(side=TOP, fill=X)
LabeledEntry(limwin, 'Max messages to forward per poll:',
self.batchlimit, '30').pack(side=TOP, fill=X)
- LabeledEntry(limwin, 'Interval between expunges (IMAP):',
- self.expunge, '30').pack(side=TOP, fill=X)
+ if self.server.protocol in ('IMAP', 'IMAP-K4', 'IMAP-GSS'):
+ LabeledEntry(limwin, 'Interval between expunges (IMAP):',
+ self.expunge, '30').pack(side=TOP, fill=X)
limwin.pack(fill=X)
- foldwin = Frame(rightwin, relief=RAISED, bd=5)
- Label(foldwin, text="Remote folders (IMAP only)").pack(side=TOP)
- ListEdit("New folder:", self.user.mailboxes, None, foldwin, None)
- foldwin.pack(fill=X, anchor=N)
+ if self.server.protocol in ('IMAP', 'IMAP-K4', 'IMAP-GSS'):
+ foldwin = Frame(rightwin, relief=RAISED, bd=5)
+ Label(foldwin, text="Remote folders (IMAP only)").pack(side=TOP)
+ ListEdit("New folder:", self.user.mailboxes, None, foldwin, None)
+ foldwin.pack(fill=X, anchor=N)
if mode != 'novice':
rightwin.pack(side=LEFT)