Adam Dobrawy
51edeca7dc
Use ugettext_lazy instead ugettext in models.py
2015-11-27 01:50:01 +01:00
Antonio Corroppoli
e766174fdd
Fix UnicodeDecodeError in MessageAttachment headers
2015-08-14 14:48:27 +02:00
Adam Dobrawy
0e4fb95a39
Turn on exception for incoming messages
...
> Errors should never pass silently
I waste a hours to debug that . I don't expect this kind of behaviour. In my app proccess incoming mails is critical and I should receive exception and on fail transaction should rollback everything and try again later.
2015-08-04 16:14:29 +02: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
95f4d5c7ff
Be sure to pass the condition on through to the underlying transport.
2015-07-07 22:30:53 -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
eupharis
1a04087159
add DJANGO_MAILBOX_ATTACHMENT_UPLOAD_TO setting
2015-06-22 17:28:23 -06:00
Adam Coddington
3d5b816150
Adding docstrings to models.
2015-04-20 20:54:46 -07:00
Adam Coddington
50282414aa
Always re-open filefield before reading.
2015-04-13 20:20:11 -07:00
Adam Coddington
830343bf78
Always read file object in as bytes; fixes bug in which non-local file storage caused get_email_object to fail.
2015-04-13 20:13:24 -07:00
Adam Coddington
694a90141b
Minor field display name change.
2015-03-26 23:02:08 -05:00
Adam Coddington
440f31174f
Merge remote-tracking branch 'ad-m/master' into 44_store_original_email
2015-03-23 19:42:06 -07:00
Adam Coddington
2fa7e93a89
#46 : Whitespace.
2015-03-22 20:57:07 -07:00
Adam Dobrawy
2b40c9efd0
Fix typo in Message.reply
2015-03-18 10:11:34 +01:00
Adam Dobrawy
835986c96a
Added random eml file name, removed getattr related to self.mailbox.from_email in Message.reply, fix docs - second round of pull requests
2015-03-18 09:56:52 +01:00
Dmitry
fc1b3172b4
Update models.py
2015-03-16 16:52:25 +03:00
Adam Dobrawy
42d891bd8d
Added storing original message in file
2015-03-15 02:16:27 +01:00
Adam Dobrawy
24138d1dc7
During reply update from_email only if not set
2015-03-14 18:23:19 +01:00
Adam Coddington
413c492db3
Merge pull request #38 from patipatini/attachment_filename_encoding
...
Fix encoded attachment's filenames
2014-12-15 06:43:21 -08:00
Philippe
571f57d957
Fix encoded attachment's filenames
2014-12-15 14:50:14 +01:00
Adam Coddington
f16d4f6d9c
Minor tweaks to logging.
2014-11-15 22:18:19 -08:00
Adam Coddington
aa59199c9b
Interpret unknown encodings as ASCII. Fixes #34 .
2014-11-15 22:15:25 -08:00
Adam Coddington
e1b0763a46
Store 'Delivered-To' as 'to_header' when 'to' is unspecified.
2014-11-10 19:20:17 -08:00
Will
1406d465d6
Adjust usages of get_query_set to get_queryset
2014-09-06 19:18:47 -07:00
Will
bd56716e74
Fix deprecation warnings after Django 1.7 upgrade
2014-09-06 16:31:12 -07:00
Ariel Gerardo Ríos
6d73301f0d
Add property to fetch HTML body message.
2014-09-01 15:30:30 -03:00
Ariel Gerardo Ríos
ce7e17b50c
Add file header and dummy HTML method.
2014-08-29 17:24:49 -03:00
Ariel Gerardo Ríos
305d1c5c38
Add translation support to field names and help texts.
2014-08-29 16:08:01 -03:00
Ariel Gerardo Ríos
4f400fab48
Add some spaces between constants and imports.
2014-08-29 15:39:49 -03:00
Adam Coddington
591f1545c8
Decode from ASCII with replacement if errors are encountered while gathering text. Fixes #20 .
2014-08-22 19:46:39 -07:00
Alex Lovell-Troy
677e420dec
Adding gmail to the mailbox types
...
and adding the type to models.py
2014-05-28 21:24:46 -06:00
Adam Coddington
02567acdc2
Minor alterations to @yellowcap's pull request submission:
...
* Using a query parameter argument (rather than the entire query string)
to specify the folder into which e-mail messages should be archived.
* Duplicating the IMAP tests; this could probably be a bit more simply
done, but we'll at least be verifying both archived and non-archived
use cases.
* Simplifying some aspects of the documentation to include references
to this new feature.
2014-05-25 12:35:20 -07:00
Daniel
0e0c6cf170
Added email archiving option to IMAP transport
2014-05-23 09:17:14 +01:00
Adam Coddington
2b90f08250
Merge branch 'master' of github.com:coddingtonbear/django-mailbox
2014-04-24 15:49:18 -07:00
Adam Coddington
002e33bd95
Refactoring imports for Python3 support. Fixes #13 .
...
* Refactoring unicode payload handling of mis-encoded payloads.
* Uses six.moves.urllib to find proper urllib versions.
2014-04-24 15:44:45 -07:00
Adam Coddington
a2cf80ef99
Fixing header decoding such that it works properly under both Python 3.x and 2.x.
2014-04-22 17:06:17 -07:00
Adam Coddington
79e189fb22
Always decode headers into unicode objects before assigning to model; fixes #12 .
2014-04-22 15:49: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
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
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
Oliver
d294b26729
Bugfixes: Attachment extension; UTF16 characters in body
2013-08-03 10:53:38 -05: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
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