소스 검색

Explain Fetch (RFC822) in MailFetcher

Guénaël Muller 7 년 전
부모
커밋
96c949d82c
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      tracim/tracim/lib/email_fetcher.py

+ 4 - 0
tracim/tracim/lib/email_fetcher.py 파일 보기

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