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

197 commits

Author SHA1 Message Date
Adam Coddington
fba355b2ec Adding license. 2014-02-22 20:01:30 -08:00
Adam Coddington
ce74ff1f83 Removing 1.4.10 from tested versions. 2013-12-24 02:18:12 -08:00
Adam Coddington
24adc86410 Adding a greater variety of Django versions. 2013-12-24 02:10:54 -08:00
Adam Coddington
8d7e24af3a Moving active development from bitbucket to github. 2013-12-15 21:47:34 -08:00
Adam Coddington
38566ba603 Merge pull request #8 from bitdeli-chef/master
Add a Bitdeli Badge to README
2013-12-02 17:47:42 -08:00
Bitdeli Chef
b758c73b01 Add a Bitdeli badge to README 2013-12-03 01:49:54 +00:00
Adam Coddington
66dcab8cae Added tag 3.0.3 for changeset 42d182e2744c 2013-11-26 21:29:49 -08:00
Adam Coddington
d2c58bcf60 Bumping patch number to 3.0.3. 2013-11-26 21:29:39 -08:00
Adam Coddington
61e618953f Merging in upstream changes. 2013-11-26 21:26:44 -08:00
Michal Adamczyk
8aef745832 fix migration 0014, set no_dry_run=True 2013-11-25 21:13:32 +01:00
Adam Coddington
8c4d60cb9b Merge pull request #7 from wckd/bump_django
Bumped django to 1.5.4
2013-09-28 13:23:40 -07:00
Alexander Hansen
3b5e8afc08 Bumped django to 1.5.4 2013-09-28 11:52:06 +00:00
Adam Coddington
81615a27e0 Bumping version number. 2013-09-07 13:07:09 -07:00
Adam Coddington
f4f70d1e8e Added tag 3.0.2 for changeset 60b47cbeda21 2013-09-07 13:06:49 -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
fe78fb0dcd Added tag 3.0.1 for changeset ecc773b0f8f0 2013-08-04 19:57:32 -07:00
Adam Coddington
a6b4d3729a Removing 'body' from admin message display. 2013-08-04 19:57:28 -07:00
Adam Coddington
58ca8beeef Updating documentation. 2013-08-04 17:15:11 -07:00
Adam Coddington
6cf74eb706 Added tag 3.0 for changeset ca5dcd16990a 2013-07-26 22:20:39 -07:00
Adam Coddington
e858703642 Bumping major revision number given new migration and changes to DB storage of message body. 2013-07-26 22:19:45 -07:00
Adam Coddington
1bd781832a Removing leftover logger. 2013-07-26 22:16:44 -07:00
Adam Coddington
88d122c421 Base64-encode message body when storing in DB.
* Since Django requires that the content stored in a TextField be unicode, we
  need some way to encode the message safely.  In situations before where
  a single-byte non-7-bit-clean encoding were used, django-mailbox could
  explode when writing the message copy to the database; this should ameliorate
  that problem.
* Reverts earlier changesets' encoding normalization.
2013-07-26 22:13:29 -07:00
Adam Coddington
4c3af900c6 Remove unicode literals from tests for Python3. 2013-07-26 19:18:57 -07:00
Adam Coddington
adb17e7d67 Adding tests and minor code changes to ensure that we properly handle the distinction between bytes and text when dehydrating/rehydrating messages. 2013-07-26 19:13:35 -07:00
Adam Coddington
3ee4b43936 Cleaning up tests; moving test e-mail messages; fixing bugs relating to message encoding rehydration.
--HG--
rename : django_mailbox/tests/generic_message.eml => django_mailbox/tests/messages/generic_message.eml
rename : django_mailbox/tests/message_with_attachment.eml => django_mailbox/tests/messages/message_with_attachment.eml
rename : django_mailbox/tests/message_with_defective_attachment_association.eml => django_mailbox/tests/messages/message_with_defective_attachment_association.eml
rename : django_mailbox/tests/message_with_defective_attachment_association_result.eml => django_mailbox/tests/messages/message_with_defective_attachment_association_result.eml
rename : django_mailbox/tests/message_with_image_jpg_mimetype.eml => django_mailbox/tests/messages/message_with_image_jpg_mimetype.eml
rename : django_mailbox/tests/message_with_long_text_lines.eml => django_mailbox/tests/messages/message_with_long_text_lines.eml
rename : django_mailbox/tests/message_with_many_multiparts.eml => django_mailbox/tests/messages/message_with_many_multiparts.eml
rename : django_mailbox/tests/message_with_many_multiparts_stripped_html.eml => django_mailbox/tests/messages/message_with_many_multiparts_stripped_html.eml
rename : django_mailbox/tests/message_with_utf8_char.eml => django_mailbox/tests/messages/message_with_utf8_char.eml
rename : django_mailbox/tests/multipart_text.eml => django_mailbox/tests/messages/multipart_text.eml
2013-07-26 18:07:31 -07:00
Adam Coddington
98745bcd70 Set email payload's charset after all other headers. 2013-07-26 17:40:44 -07:00
Adam Coddington
2e6c23a6f0 Revamping encoding handling to normalize encodings to UTF-8 for storage; back into original encoding during rehydration. 2013-07-26 01:01:07 -07:00
Adam Coddington
f92e2a8448 Reorganizing tests. 2013-07-25 23:45:39 -07:00
Adam Coddington
b54855c3a2 Moving e-mail examples alongside other e-mail messages. 2013-08-03 18:00:53 -07:00
Travis
1fa21c87dc Added testcases for bugfixes 2013-08-03 17:00:32 -05:00
Oliver
d294b26729 Bugfixes: Attachment extension; UTF16 characters in body 2013-08-03 10:53:38 -05:00
Adam Coddington
7d6f0a7b36 Added tag 2.2 for changeset 6ad729a34dde 2013-07-26 20:24:32 -07:00
Adam Coddington
35ea317204 Bumping version number. 2013-07-26 20:24:29 -07:00
Adam Coddington
f48abb0d14 Adding missing import. 2013-07-26 20:18:49 -07:00
Adam Coddington
0f3cb09f94 Minor PR cleanup and reorganization. 2013-07-26 20:15:39 -07:00
Adam Coddington
9954b74eae Merging in changes from buriy:master (pr #5) 2013-07-25 18:45:22 -07:00
Yuri Baburov
d06c64a487 Added subject decode 2013-07-25 17:56:05 +00:00
Yuri Baburov
ac0f2153c0 Applied cleaned up fixes from Anders.Du (duyu) 2013-07-25 18:47:49 +01:00
Yuri Baburov
6697e848c8 Support for Django 1.4 with python 2.5, copied from
https://github.com/jhmaddox/django-precompressed/issues/1
("AttributeError: StringIO instance has no attribute 'name'")
2013-07-25 18:24:33 +01:00
Adam Coddington
a7dcb05b37 Adding target to travis.ci link. 2013-07-25 00:24:39 -07:00
Adam Coddington
384de32d85 Encode email message body into UTF-8 always when on Python 2; although I originally thought that this was a Python 2.6 thing, it looks like it might be some combination of platform/version, but bytes should always be fine. 2013-07-25 00:14:24 -07:00
Yuri Baburov
32968aa678 Support for Django 1.4 with python 2.5, copied from
https://github.com/jhmaddox/django-precompressed/issues/1
("AttributeError: StringIO instance has no attribute 'name'")
2013-07-22 18:16:28 +01:00
Anders.Du
491b489867 Fix the IndentationError in last commit. 2013-07-21 17:31:44 +08:00
Anders.Du
eca0b2caa4 * Add decoding for some encoded messages parts, i.e.
attachments' name, message header, etc.
* Remove overriding for MessageAttachment's __getitem__
  method, so we can call the members directly in django
  templates.

Signed-off-by: Anders.Du <ander.dy@gmail.com>
2013-07-19 23:39:41 +08:00
Adam Coddington
4e83ae8eb3 Updating documentation. 2013-06-24 00:20:08 -07:00
Adam Coddington
a3b1e12b25 Added tag 2.1.1 for changeset b5e4c7cfe0eb 2013-06-23 20:52:55 -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
d986008b4f Added tag 2.1 for changeset 4d72a7d6bb96 2013-06-23 20:27:52 -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