Browse Source

Explain Fetch (RFC822) in MailFetcher

Guénaël Muller 6 years ago
parent
commit
96c949d82c
1 changed files with 4 additions and 0 deletions
  1. 4 0
      tracim/tracim/lib/email_fetcher.py

+ 4 - 0
tracim/tracim/lib/email_fetcher.py View File

@@ -265,6 +265,10 @@ class MailFetcher(object):
265 265
             if rv == 'OK':
266 266
                 # get mail content
267 267
                 for num in data[0].split():
268
+                    # INFO - G.M - 2017-11-23 - Fetch (RFC288) to retrieve all complete mails
269
+                    # see example : https://docs.python.org/fr/3.5/library/imaplib.html#imap4-example .
270
+                    # Be careful, This method remove also mails from Unseen mails
271
+
268 272
                     rv, data = self._connection.fetch(num, '(RFC822)')
269 273
                     if rv == 'OK':
270 274
                         msg = message_from_bytes(data[0][1])