Alex Lovell-Troy
d6f3ff2c5c
Adding a missed edit
2014-05-28 21:30:04 -06: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
Alex Lovell-Troy
b2abec1d40
fixing typo in the docs
2014-05-28 20:53:44 -06:00
Alex Lovell-Troy
58550c76c9
Teaching people how to use the settings
2014-05-28 20:50:48 -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
Alex Lovell-Troy
cc4e72305d
Adding gmail oauth2 authentication
...
python-social-auth is an optional dependency
2014-05-28 20:10:45 -06:00
Adam Coddington
6336e910bd
Fixing a documentation glitch; thanks for catching this, @yellowcap.
2014-05-26 10:25:55 -07:00
Adam Coddington
0aa757955d
Create archive folder if it does not exist.
2014-05-25 12:57:38 -07:00
Adam Coddington
bf2f0c89d4
Bumping version number to 3.3.
2014-05-25 12:37:46 -07: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
872f4786c7
Actually fixing Python 3 support; thanks for pointing out that it was broken, @greendee!
2014-04-25 16:50:44 -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
4002d5c222
Bumping version number.
2014-04-24 15:49:49 -07: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
ff68e564d5
Ignore virtualenv.
2014-04-24 06:32:55 -07:00
Adam Coddington
0f0628a742
Only expect additional space in Python 3.3+.
2014-04-22 17:13:41 -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
ef42c319e9
Updating yet another string for python3.
2014-04-22 16:24:16 -07:00
Adam Coddington
d871d41448
Fix test for Py3 support.
2014-04-22 16:06:34 -07:00
Adam Coddington
79493cb1bc
Bumping version number to 3.1.
2014-04-22 15:50:46 -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
dmippoltiov
d3a766ffd6
Create test_UnicodeDecodeError.eml
...
this message raise error on get_mail:
Traceback:
File "/usr/local/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
114. response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/local/lib/python2.7/site-packages/django/views/generic/base.py" in view
69. return self.dispatch(request, *args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/django/views/generic/base.py" in dispatch
87. return handler(request, *args, **kwargs)
File "/home/leha/django-site/proj/views.py" in get
140. messages = mailbox.get_new_mail()
File "/usr/local/lib/python2.7/site-packages/django_mailbox/models.py" in get_new_mail
285. msg = self.process_incoming_message(message)
File "/usr/local/lib/python2.7/site-packages/django_mailbox/models.py" in process_incoming_message
183. msg = self._process_message(message)
File "/usr/local/lib/python2.7/site-packages/django_mailbox/models.py" in _process_message
266. msg.save()
File "/usr/local/lib/python2.7/site-packages/django/db/models/base.py" in save
545. force_update=force_update, update_fields=update_fields)
File "/usr/local/lib/python2.7/site-packages/django/db/models/base.py" in save_base
573. updated = self._save_table(raw, cls, force_insert, force_update, using, update_fields)
File "/usr/local/lib/python2.7/site-packages/django/db/models/base.py" in _save_table
654. result = self._do_insert(cls._base_manager, using, fields, update_pk, raw)
File "/usr/local/lib/python2.7/site-packages/django/db/models/base.py" in _do_insert
687. using=using, raw=raw)
File "/usr/local/lib/python2.7/site-packages/django/db/models/manager.py" in _insert
232. return insert_query(self.model, objs, fields, **kwargs)
File "/usr/local/lib/python2.7/site-packages/django/db/models/query.py" in insert_query
1511. return query.get_compiler(using=using).execute_sql(return_id)
File "/usr/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py" in execute_sql
898. cursor.execute(sql, params)
File "/usr/local/lib/python2.7/site-packages/django/db/backends/util.py" in execute
73. sql = self.db.ops.last_executed_query(self.cursor, sql, params)
File "/usr/local/lib/python2.7/site-packages/django/db/backends/postgresql_psycopg2/operations.py" in last_executed_query
214. return cursor.query.decode('utf-8')
File "/usr/local/lib/python2.7/encodings/utf_8.py" in decode
16. return codecs.utf_8_decode(input, errors, True)
Exception Type: UnicodeDecodeError at /proj/new_mail/
Exception Value: 'utf8' codec can't decode byte 0xd3 in position 187: invalid continuation byte
2014-04-21 17:40:40 +04:00
Adam Coddington
9c792717db
Updating readme.
2014-02-24 19:47:12 -08:00
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