1
0
Fork 0
Commit graph

20 commits

Author SHA1 Message Date
Adam Coddington
5bcbac33d6 Add handling for situations in which the message was deleted in another thread before processing. 2015-07-07 23:05:15 -07:00
Adam Coddington
988cb7504f Adding a more-versatile condition-handling method for preventing integration tests from mashing on one another. 2015-07-07 22:22:15 -07:00
Adam Coddington
4037aac5e4 If no message was returned; continue. 2015-04-12 12:21:48 -07:00
Adam Coddington
abad769fd6 Fixing test discovery, adding functionality allowing one to restict
message gathering (via the IMAP transport) to only messages matching a
specified subject.

Fixes #49.
2015-04-12 12:11:49 -07:00
Dmitry
1862529f2a Update imap.py 2015-03-16 16:55:12 +03:00
Ben Segal
7fd5b02054 If no message_ids, return before checking for small_message_ids 2015-01-31 15:46:49 -08:00
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
Adam Coddington
b4c20bdf2e Reordering imports to match style guide. 2014-08-22 19:25:14 -07:00
Adam Coddington
7474cf0118 Prevent ImapTransport from raising exception when no messages are available. Fixes #24. Release 3.4.1. 2014-08-14 21:41:08 -07:00
Adam Coddington
61b1e55c50 Minor stylistic changes. 2014-05-30 16:32:57 -07:00
Alex Lovell-Troy
1efa1140a6 I'll get the 2to3 changes right someday 2014-05-29 23:47:48 -06:00
Alex Lovell-Troy
ec18a01880 Refactored the imap transport based on the tests
Testing the switch to uid-based IMAP calls required better testing
The better testing revealed some code that wasn't so pretty

I fixed the tests and the code
2014-05-29 23:41:11 -06:00
Alex Lovell-Troy
29d36a493a Adding ability to limit messages by max size
Adding a new setting for maximum message size
 Adding method to limit a set of message uids by size
 Switching to IMAP uids so that we can trust that subsequent
 commands will use the same ids
2014-05-28 20:39:13 -06:00
Adam Coddington
0aa757955d Create archive folder if it does not exist. 2014-05-25 12:57:38 -07:00
Daniel
0e0c6cf170 Added email archiving option to IMAP transport 2014-05-23 09:17:14 +01:00
Adam Coddington
3b2d60a903 Actually fixing Python 3 support; verified both IMAP and POP3. Fixes #13 (seriously this time). 2014-04-25 16:45:35 -07:00
Adam Coddington
02b63b4001 Merged in medsafe/django-mailbox/ashvetsov/fixes-to-push (pull request #1)
Thanks @medsafe!

Fixes for signal exception handling and inability to get IMAP inbox
2013-09-07 13:05:25 -07:00
Adam Coddington
9cdb2d9d1b PEP-8 Cleanup. 2013-06-22 14:35:47 -07:00
ashvetsov
8ab0f708c5 Fixed issue with exception when IMAP transport returned no messages.
--HG--
branch : ashvetsov/fixes-to-push
extra : source : b9b283ff46d734933c4a715630e114d5e250a34b
2013-04-11 15:48:49 +04:00
Adam Coddington
aa0b79b36f Adding file-based transports including Maildir, Mbox, Babyl, MH, and MMDF. 2012-06-30 22:30:13 -07:00