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

345 commits

Author SHA1 Message Date
Adam Coddington
09718a1901 Adding share/ to gitignore. 2014-08-15 21:00:12 -07:00
Adam Coddington
7474cf0118 Prevent ImapTransport from raising exception when no messages are available. Fixes #24. Release 3.4.1. 2014-08-14 21:41:08 -07:00
Adam Coddington
3ffbcea3bf This probably should have been using explicit references anyway. 2014-08-13 17:40:26 -07:00
Adam Coddington
24dd3be36a Minor alterations and clarifications to @fsboehme's fantastic addition. 2014-08-13 17:40:03 -07:00
fsboehme
9706fda4e3 Update installation.rst
added db migration step and mailbox setup to installation notes
2014-08-13 16:45:41 -07:00
Adam Coddington
83a6249c85 s/latestrevision/coddingtonbear/g 2014-07-31 20:30:42 -07:00
Adam Coddington
3a2e05b01f Updating documentation to explain exim4 configurations in greater detail. 2014-06-03 19:51:34 -07:00
Adam Coddington
8741648666 Minor readme rewording. 2014-06-03 15:09:44 -07:00
Adam Coddington
17b7478ebc Merge branch 'master' of github.com:coddingtonbear/django-mailbox 2014-06-02 16:13:58 -07:00
Adam Coddington
db2193d2be Updating readme. 2014-06-02 16:13:49 -07:00
Adam Coddington
652ae282ba Bumping version number to 3.4. 2014-06-01 14:27:03 -07:00
Adam Coddington
8af7c676fb Remoing unaccessed 'fetch_contacts' function. 2014-06-01 14:26:30 -07:00
Adam Coddington
d1485d9cd5 Replacing print statements with logger.info 2014-06-01 14:24:34 -07:00
Adam Coddington
7a19c5db25 Minor documentation tweaks. 2014-05-31 19:04:24 -07:00
Adam Coddington
61b1e55c50 Minor stylistic changes. 2014-05-30 16:32:57 -07:00
Adam Coddington
91da5d3203 Merge remote-tracking branch 'alexlovelltroy/size_limiting' into issue_19 2014-05-30 16:31:13 -07:00
Alex Lovell-Troy
1efa1140a6 I'll get the 2to3 changes right someday 2014-05-29 23:47:48 -06:00
Alex Lovell-Troy
ec18a01880 Refactored the imap transport based on the tests
Testing the switch to uid-based IMAP calls required better testing
The better testing revealed some code that wasn't so pretty

I fixed the tests and the code
2014-05-29 23:41:11 -06:00
Adam Coddington
05c8d3ece8 Minor cleanup & a Python 3k fix. 2014-05-29 16:52:08 -07:00
Adam Coddington
e50408e365 Merge pull request #18 from alexlovelltroy/add_gmail_auth
Adding gmail oauth2 authentication.  Thanks @alexlovelltroy!
2014-05-29 16:48:06 -07:00
Alex Lovell-Troy
ea793545d9 Update gmail.py 2014-05-29 07:31:14 -06:00
Alex Lovell-Troy
857643e978 Update mailbox_types.rst 2014-05-28 21:33:38 -06:00
Alex Lovell-Troy
7e4f8cd6cd reformatting 2014-05-28 21:32:25 -06:00
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