Browse Source

improved initial email decoding function

master
Rinaldus 6 years ago
parent
commit
9cb0d58312
Signed by: Rinaldus
GPG Key ID: C34E249005178E87
  1. 4
      mail-notifier.py

4
mail-notifier.py

@ -277,8 +277,8 @@ class Mail(): @@ -277,8 +277,8 @@ class Mail():
return "ERROR"
def parseMail(self):
try:
self.imap.select()
typ, data = self.imap.search(None, 'ALL')
self.imap.select(readonly=True)
typ, data = self.imap.search(None, 'UNSEEN')
for num in data[0].split():
typ, data = self.imap.fetch(num, '(RFC822)')
raw_mail = data[0][1]

Loading…
Cancel
Save