1
0
Fork 0
django-mailbox/django_mailbox/transports
Adam Coddington dad65d802c Wrap added \Deleted flag in parentheses. Fixes #23.
Apparently the IMAP specification expects that the +FLAGS argument be
surrounded by parentheses; although some e-mail backends (like Gmail)
will accept the +FLAGS argument without surrounding the \Deleted flag
in parentheses, many (reasonably) follow the specification much more
closely.  This problem was first noted in report #23.

Searching for other examples of mail deletion, I've found several
Stack Overflow articles in which people are attempting the same task,
and each either uses `imap.store` without surrounding '\Deleted' in
parentheses, or uses `imap.uid` *while* surrounding '\Deleted' in
parentheses:

* http://stackoverflow.com/questions/1777264/using-python-imaplib-to-delete-an-email-from-gmail
* http://stackoverflow.com/questions/3180891/imap-deleting-messages
2014-08-22 19:27:36 -07:00
..
__init__.py Adding gmail oauth2 authentication 2014-05-28 20:10:45 -06:00
babyl.py PEP-8 Cleanup. 2013-06-22 14:35:47 -07:00
base.py Actually fixing Python 3 support; verified both IMAP and POP3. Fixes #13 (seriously this time). 2014-04-25 16:45:35 -07:00
generic.py Actually fixing Python 3 support; verified both IMAP and POP3. Fixes #13 (seriously this time). 2014-04-25 16:45:35 -07:00
gmail.py Minor cleanup & a Python 3k fix. 2014-05-29 16:52:08 -07:00
imap.py Wrap added \Deleted flag in parentheses. Fixes #23. 2014-08-22 19:27:36 -07:00
maildir.py PEP-8 Cleanup. 2013-06-22 14:35:47 -07:00
mbox.py PEP-8 Cleanup. 2013-06-22 14:35:47 -07:00
mh.py PEP-8 Cleanup. 2013-06-22 14:35:47 -07:00
mmdf.py PEP-8 Cleanup. 2013-06-22 14:35:47 -07:00
pop3.py Actually fixing Python 3 support; verified both IMAP and POP3. Fixes #13 (seriously this time). 2014-04-25 16:45:35 -07:00