Parcourir la source

Explain Fetch (RFC822) in MailFetcher

Guénaël Muller il y a 7 ans
Parent
révision
96c949d82c
1 fichiers modifiés avec 4 ajouts et 0 suppressions
  1. 4 0
      tracim/tracim/lib/email_fetcher.py

+ 4 - 0
tracim/tracim/lib/email_fetcher.py Voir le fichier

@@ -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])