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

Method __getpassword

offlineimap/imapserver.py:171–184  ·  view source on GitHub ↗

Returns the server password or None

(self)

Source from the content-addressed store, hash-verified

169 return dfltsocket
170
171 def __getpassword(self):
172 """Returns the server password or None"""
173
174 if self.goodpassword != None: # use cached good one first
175 return self.goodpassword
176
177 if self.password != None and self.passworderror == None:
178 return self.password # non-failed preconfigured one
179
180 # get 1) configured password first 2) fall back to asking via UI
181 self.password = self.repos.getpassword() or \
182 self.ui.getpass(self.username, self.config, self.passworderror)
183 self.passworderror = None
184 return self.password
185
186 def __md5handler(self, response):
187 challenge = response.strip()

Callers 3

__md5handlerMethod · 0.95
__loginauthMethod · 0.95
__plainhandlerMethod · 0.95

Calls 2

getpasswordMethod · 0.80
getpassMethod · 0.45

Tested by

no test coverage detected