diff options
-rwxr-xr-x | fetchmailconf.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fetchmailconf.py b/fetchmailconf.py index 1faf9b78..571e18fb 100755 --- a/fetchmailconf.py +++ b/fetchmailconf.py @@ -132,7 +132,7 @@ class Server: res = res + (" via " + str(self.via) + "\n"); if self.protocol != ServerDefaults.protocol: res = res + " with proto " + self.protocol - if self.protocol and self.service != defaultports[self.protocol] and defaultports[self.protocol] and self.service != ianaservices[defaultports[self.protocol]]: + if self.service and self.protocol and self.service != defaultports[self.protocol] and defaultports[self.protocol] and self.service != ianaservices[defaultports[self.protocol]]: res = res + " service " + self.service if self.timeout != ServerDefaults.timeout: res = res + " timeout " + `self.timeout` |