1
0
Fork 1
mirror of https://github.com/coddingtonbear/django-mailbox.git synced 2026-07-09 22:38:19 +02:00
Commit graph

26 commits

Author SHA1 Message Date
Pascal F
6dcded0e75
Improve documentation and flake8 2024-05-24 09:25:54 +02:00
Akshet Pandey
f91b4ee544 supress errors during close 2024-02-28 14:10:01 -08:00
Akshet Pandey
fbaa378e59 Close connections after we are done with them 2024-02-28 11:42:21 -08:00
Adam Dobrawy
2b2b7d6392 Modernize syntax, drop Python EOL, drop drop Django<1.11, upgrade TravisCI config to v1, add Python 3.8 & Django 3.x 2019-11-09 19:23:08 +01:00
Steeve
8a73076427 add imaps STARTTLS support (#94)
* add imaps STARTTLS support using +tls

* documentation on STARTTLS
2016-05-15 12:05:11 -07:00
Adam Coddington
19cc19e2d6 Bumping maxlines to 10^6 to support large mailboxes. Fixes #81. 2016-02-15 19:22:26 -08:00
Adam Coddington
ff433a24f4 Always store payload parts having a Content-Disposition of 'attachment' as attachments, even if their Content-Type is text/plain. Fixes #52.
Squashed commit of the following:

commit 5bcbac33d6
Author: Adam Coddington <me@adamcoddington.net>
Date:   Tue Jul 7 23:05:15 2015 -0700

    Add handling for situations in which the message was deleted in another thread before processing.

commit 6183f68b39
Author: Adam Coddington <me@adamcoddington.net>
Date:   Tue Jul 7 22:58:15 2015 -0700

    Always store message as attachment if its content-disposition is marked as such.

commit 4c16494b1a
Author: Adam Coddington <me@adamcoddington.net>
Date:   Tue Jul 7 22:46:52 2015 -0700

    Adding a (hopefully) failing test case for #52.
2015-07-07 23:09:41 -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