1
0
Fork 0
django-mailbox/django_mailbox
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
..
management Fixing bad migration; keeping migration for rebuilding associations as a management command. 2013-06-11 22:23:27 -07:00
migrations fix migration 0014, set no_dry_run=True 2013-11-25 21:13:32 +01:00
tests Refactored the imap transport based on the tests 2014-05-29 23:41:11 -06:00
transports Wrap added \Deleted flag in parentheses. Fixes #23. 2014-08-22 19:27:36 -07:00
__init__.py Initial commit. 2012-06-27 20:45:01 -07:00
admin.py Always decode headers into unicode objects before assigning to model; fixes #12. 2014-04-22 15:49:49 -07:00
google_utils.py Remoing unaccessed 'fetch_contacts' function. 2014-06-01 14:26:30 -07:00
models.py Adding gmail to the mailbox types 2014-05-28 21:24:46 -06:00
runtests.py Reorganizing tests. 2013-07-25 23:45:39 -07:00
signals.py Initial commit. 2012-06-27 20:45:01 -07:00
utils.py Fixing header decoding such that it works properly under both Python 3.x and 2.x. 2014-04-22 17:06:17 -07:00