fix open imap as readonly
This commit is contained in:
parent
bc452a9f64
commit
982ff576c5
|
@ -20,7 +20,7 @@ N = 200
|
||||||
imap = imaplib.IMAP4_SSL(imapserver)
|
imap = imaplib.IMAP4_SSL(imapserver)
|
||||||
imap.login(username, password)
|
imap.login(username, password)
|
||||||
|
|
||||||
status, messages = imap.select("Notes")
|
status, messages = imap.select("Notes", True)
|
||||||
|
|
||||||
messages = int(messages[0])
|
messages = int(messages[0])
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue