1
0
Fork 0
Commit graph

150 commits

Author SHA1 Message Date
Adam Coddington
4e83ae8eb3 Updating documentation. 2013-06-24 00:20:08 -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
548cc66c52 Incorporating changes from @mancio's fork. 2013-06-22 17:44:55 -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
9f77c9221a Removing unintended print message :-o 2013-06-22 14:28:00 -07:00
Adam Coddington
156b6fb418 Hide original body from email message display in admin; bumping version number. 2013-06-11 22:32:13 -07:00
Adam Coddington
cd77dd1c93 Merging in upstream changes. 2013-06-06 01:11:04 -07:00
Adam Coddington
46960440d5 Typo. 2013-06-06 01:10:12 -07:00
Adam Coddington
af2f37a247 Remove M2M relationship between MessageAttachment and Message. 2013-06-06 01:03:16 -07:00
Adam Coddington
8a34ac211c Properly handle RFC2822 line continuations; resolves #4. 2013-06-05 12:43:28 -07:00
ashvetsov
60718f5ea8 Fixed issue that made it possible for signal receiver to break getmail.
--HG--
branch : ashvetsov/fixes-to-push
extra : source : a76f8a4e1cf9c469710eb30d093be749965ee213
2013-04-11 15:56:22 +04: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
Patrick Craston
8fac7c9711 Only store text/plain and text/html in body field
When parsing multipart message it was storing the whole message as
string in database which could lead to database errors. Only want to
store the actual message text
2013-03-01 16:35:26 +00: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
5bd99b8b91 Be very careful about filename length. 2013-01-20 16:58:56 -08:00
Adam Coddington
895fcff4b7 Code cleanup; ensure no tb in the event of a very-long filename. 2013-01-20 16:51:10 -08:00
Adam Coddington
afa82b861c Adding get_text_body convenience method. 2013-01-20 14:27:15 -08:00
Adam Coddington
25f1a71725 Allow message to be saved without attachments. 2013-01-20 13:44:49 -08:00
Patrick Craston
ad4a1c00f4 Ignore p7s smime attachments 2013-01-15 15:48:15 +00:00
Patrick Craston
2e484aaed8 Add admin support for attachments --display correctly 2013-01-15 12:27:32 +00:00
Patrick Craston
645a723d09 Move Attachment model up 2013-01-15 12:11:08 +00:00
Patrick Craston
e3cd913fe7 Add attachment handling 2013-01-15 12:05:04 +00:00
Adam Coddington
af58c324f5 Adding unread/read flagging for individual messages. 2012-11-27 19:01:49 -08:00
Adam Coddington
9615568108 Modifying admin display; adding help text. 2012-10-28 12:41:36 -07:00
Adam Coddington
0cdf0e4126 Escape HTML in help text. 2012-10-28 12:27:20 -07:00
Adam Coddington
6a1394eded Fixing syntax bug. 2012-10-28 12:26:17 -07:00
Adam Coddington
77acc09e2f Allow specification of from e-mail on mailbox model. 2012-10-28 12:25:37 -07:00
Adam Coddington
188ac8093b Removing 'References' table; default django mail sending methods do not allow multi-line headers (which are required for setting references). 2012-10-28 12:03:31 -07:00
Adam Coddington
608ab9f6c4 Do not set message to returned value from sending. 2012-10-28 11:34:04 -07:00
Adam Coddington
ba71477f21 Misspelled import. 2012-10-28 11:33:06 -07:00
Adam Coddington
62231e5a08 Misspelled import. 2012-10-28 11:31:31 -07:00
Adam Coddington
dcb26e97b5 Set message-Id during reply process; build message references properly. 2012-10-28 11:29:56 -07:00
Adam Coddington
bbbb774102 Convert message to string, then consume message into Email object. 2012-10-28 10:54:24 -07:00
Adam Coddington
01ce366d86 Properly return message object. 2012-10-27 19:10:18 -07:00
Adam Coddington
8a1ada2283 Removing accidental reference to self. 2012-10-27 19:03:15 -07:00
Adam Coddington
e4cb4d198a Removing missing .all for iterating over related objects. 2012-10-27 19:01:09 -07:00
Adam Coddington
1be4539246 Adding functionality allowing one to easily send replies to existing messages. 2012-10-27 18:51:41 -07:00
Adam Coddington
5f39ac7fc9 Separate address field into two distinct fields storing TO and FROM headers. 2012-10-27 17:46:48 -07:00
me@adamcoddington.net
ff39cff80d Adding active/inactive mailboxes, adding outgoing/incoming mail tracking, changing field names, tracking in-reply-to and references. 2012-10-09 05:52:04 +00:00
me@adamcoddington.net
ffbf4ace6b Return None for connection if no URI is specified in mailbox settings.
--HG--
branch : exim4_pipe
2012-10-08 15:30:32 +00:00
me@adamcoddington.net
24c2a98d81 Adding migration for handling incoming messages; adding exim4 scripts for routing messages to django_messages.
--HG--
branch : exim4_pipe
2012-10-08 15:24:42 +00:00
me@adamcoddington.net
5cf07a1c7b Modifying management command to accept incoming mail from STDIN.
--HG--
branch : exim4_pipe
2012-10-08 03:07:30 +00:00
Adam Coddington
b7192e9149 Model modifications for allowing empty source inputs; adding processincomingmessage management command.
--HG--
branch : exim4_pipe
2012-10-07 19:43:38 -07:00
Adam Coddington
bfa4c58013 Bumping version number. 2012-07-21 15:40:46 -07:00
Adam Coddington
96455e272b Removing pring message relic. 2012-07-18 21:42:04 -07:00
Adam Coddington
aa0b79b36f Adding file-based transports including Maildir, Mbox, Babyl, MH, and MMDF. 2012-06-30 22:30:13 -07:00
me@adamcoddington.net
636b144e85 Added support for SSL mailboxes. 2012-06-30 19:08:18 +00:00
Adam Coddington
413b60e35f Initial commit. 2012-06-27 20:45:01 -07:00