Correct whitespace & add docs about remoteporteval.
This commit is contained in:
parent
dde021ce52
commit
7a21cab6c5
@ -292,6 +292,7 @@ type = IMAP
|
|||||||
# "getcredentials" that parses a file "filename" and returns the account
|
# "getcredentials" that parses a file "filename" and returns the account
|
||||||
# details for "hostname".
|
# details for "hostname".
|
||||||
# remotehosteval = getcredentials("filename", "hostname", "hostname")
|
# remotehosteval = getcredentials("filename", "hostname", "hostname")
|
||||||
|
# remoteporteval = getcredentials("filename", "hostname", "port")
|
||||||
# remoteusereval = getcredentials("filename", "hostname", "user")
|
# remoteusereval = getcredentials("filename", "hostname", "user")
|
||||||
# remotepasseval = getcredentials("filename", "hostname", "passwd")
|
# remotepasseval = getcredentials("filename", "hostname", "passwd")
|
||||||
|
|
||||||
|
@ -148,12 +148,12 @@ class IMAPRepository(BaseRepository):
|
|||||||
|
|
||||||
|
|
||||||
def getport(self):
|
def getport(self):
|
||||||
port = None
|
port = None
|
||||||
|
|
||||||
if self.config.has_option(self.getsection(), 'remoteporteval'):
|
if self.config.has_option(self.getsection(), 'remoteporteval'):
|
||||||
port = self.getconf('remoteporteval')
|
port = self.getconf('remoteporteval')
|
||||||
if port != None:
|
if port != None:
|
||||||
return self.localeval.eval(port)
|
return self.localeval.eval(port)
|
||||||
|
|
||||||
return self.getconfint('remoteport', None)
|
return self.getconfint('remoteport', None)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user