diff options
author | Matthias Andree <matthias.andree@gmx.de> | 2005-06-11 20:09:06 +0000 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2005-06-11 20:09:06 +0000 |
commit | 80857e61ed3a9ea304174426518ad707692fde82 (patch) | |
tree | 6da67bcdeb4009b0b91248c01b35e688e35d24ed /fetchmailconf | |
parent | da2fa1ccbe7d416db1ebe69710b31c335df23d2f (diff) | |
download | fetchmail-80857e61ed3a9ea304174426518ad707692fde82.tar.gz fetchmail-80857e61ed3a9ea304174426518ad707692fde82.tar.bz2 fetchmail-80857e61ed3a9ea304174426518ad707692fde82.zip |
Miroslav Trmac writes:
The 'port' setting used to be an integer, now it can be an integer
or a string, depending on the presence of IPv6 support. fetchmailconf
assumes 'port' is an integer, though.
When 'port' is a string, it defaults to None; fetchmailconf can't
handle that and writes 'port None' to the output config file if the
server entry is not edited, see
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=55623
The attached patch fixes this.
Note that fetchmailconf still doesn't support other string values for
'port', even with this patch.
Mirek
svn path=/trunk/; revision=4058
Diffstat (limited to 'fetchmailconf')
-rwxr-xr-x | fetchmailconf | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fetchmailconf b/fetchmailconf index ef41a5df..b28a5d96 100755 --- a/fetchmailconf +++ b/fetchmailconf @@ -133,7 +133,7 @@ class Server: res = res + (" via " + str(self.via) + "\n"); if self.protocol != ServerDefaults.protocol: res = res + " with proto " + self.protocol - if self.port != defaultports[self.protocol] and self.port != 0: + if self.port != defaultports[self.protocol] and self.port: res = res + " port " + `self.port` if self.timeout != ServerDefaults.timeout: res = res + " timeout " + `self.timeout` |