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

16 commits

Author SHA1 Message Date
Adam Coddington
b4a3cdc843 Switch from nose to py.test. 2016-05-14 22:06:32 -07:00
eupharis
1a04087159 add DJANGO_MAILBOX_ATTACHMENT_UPLOAD_TO setting 2015-06-22 17:28:23 -06: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
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
f92e2a8448 Reorganizing tests. 2013-07-25 23:45:39 -07:00
Adam Coddington
198b994be8 Removing print statement. 2013-06-23 20:52:50 -07:00
Adam Coddington
78c9fc1987 Fixing header comparison. 2013-06-23 20:36:05 -07:00
Adam Coddington
5f289289ce Major refactor of message attachment handling; no longer stores verbatim
message copy in database.

Bumping version number to 2.1

* Walks through incoming message, write attachments to disk as they are found,
  and alters message body removing actual attachment body, and adding
  header 'X-Django-Mailbox-Interpolate-Attachment' referencing the ID of the
  stored attachment.
* When calling ``get_email_object``, will walk through stored message, and
  're-hydrate' the message by finding said headers, searching for the
  appropriate record in the MessageAttachments table, and rebuild the message
  object as closely as possible.

Minor fixes:

* Properly collect text/plain content from any part of the message; previously
  would only check the message's first level of payloads, now walks through
  all payloads, building a string of all text/plain content.
* Remove use of deprecated `assertEquals` message.
2013-06-23 20:27:50 -07:00
Adam Coddington
364a3061c2 Adding Python3 support. 2013-06-22 15:42:50 -07:00
Adam Coddington
3ea8689ec0 Encode message body to bytes prior to reconstituting e-mail message object. Added additional test to ensure that messages can make it the full cycle. 2013-06-22 15:06:53 -07:00
Adam Coddington
9cdb2d9d1b PEP-8 Cleanup. 2013-06-22 14:35:47 -07:00
Adam Coddington
8a34ac211c Properly handle RFC2822 line continuations; resolves #4. 2013-06-05 12:43:28 -07:00
Adam Coddington
2a90953283 Adding new settings allowing one to specify a list of mimetypes that are permitted to be stored in the message body of the e-mail message model. 2013-03-11 21:00:53 -07:00
Adam Coddington
ee6b4b3e1d Delete attachments after they are no longer referenced by an e-mail message. Fixes #1. Bumping version number to 1.8.3 2013-02-03 14:52:42 -08:00
Adam Coddington
afa82b861c Adding get_text_body convenience method. 2013-01-20 14:27:15 -08:00
Adam Coddington
0eb63b44cf Adding tests. 2013-01-19 00:26:58 -08:00