MCPcopy
hub / github.com/OfflineIMAP/offlineimap / getport

Method getport

offlineimap/repository/IMAP.py:214–222  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

212 return netrcentry[0]
213
214 def getport(self):
215 port = None
216
217 if self.config.has_option(self.getsection(), 'remoteporteval'):
218 port = self.getconf('remoteporteval')
219 if port != None:
220 return self.localeval.eval(port)
221
222 return self.getconfint('remoteport', None)
223
224 def getipv6(self):
225 return self.getconfboolean('ipv6', None)

Callers 2

__init__Method · 0.45
serverdiagnosticsMethod · 0.45

Calls 4

getconfMethod · 0.80
evalMethod · 0.80
getconfintMethod · 0.80
getsectionMethod · 0.45

Tested by

no test coverage detected