|
@@ -117,8 +117,7 @@ class DecodedMail(object):
|
117
|
117
|
return False
|
118
|
118
|
|
119
|
119
|
def _get_mime_body_message(self) -> typing.Optional[Message]:
|
120
|
|
- # FIXME - G.M - 2017-11-16 - Use stdlib msg.get_body feature for py3.6+
|
121
|
|
- # FIXME - G.M - 2017-11-16 - Check support for non-multipart mail
|
|
120
|
+ # TODO - G.M - 2017-11-16 - Use stdlib msg.get_body feature for py3.6+
|
122
|
121
|
part = None
|
123
|
122
|
# Check for html
|
124
|
123
|
for part in self._message.walk():
|
|
@@ -227,7 +226,9 @@ class MailFetcher(object):
|
227
|
226
|
if self._connection:
|
228
|
227
|
self._disconnect()
|
229
|
228
|
# TODO - G.M - 2017-11-15 Support unencrypted connection ?
|
230
|
|
- # TODO - G.M - 2017-11-15 Support for keyfile,certfile ?
|
|
229
|
+ # TODO - G.M - 2017-11-23 Support for predefined SSLContext ?
|
|
230
|
+ # without ssl_context param, tracim use default security configuration
|
|
231
|
+ # which is great in most case.
|
231
|
232
|
self._connection = imaplib.IMAP4_SSL(self.host, self.port)
|
232
|
233
|
try:
|
233
|
234
|
self._connection.login(self.user, self.password)
|