2021-02-03 23:05:48 -05:00
|
|
|
|
Django Mailbox2
|
|
|
|
|
|
===============
|
|
|
|
|
|
|
|
|
|
|
|
This is a modified version of the original.
|
2013-07-25 00:24:39 -07:00
|
|
|
|
|
2021-02-03 21:51:54 -05:00
|
|
|
|
Easily ingest messages from POP3, IMAP, or local mailboxes into your Django application.
|
2014-09-01 13:38:02 -07:00
|
|
|
|
|
2021-02-03 21:51:54 -05:00
|
|
|
|
This is a modified version that has extra features. I think I need to make it better.
|
2012-06-27 20:45:01 -07:00
|
|
|
|
|
2014-09-08 19:45:32 -07:00
|
|
|
|
This app allows you to either ingest e-mail content from common e-mail services (as long as the service provides POP3 or IMAP support),
|
2018-01-13 22:24:57 +09:00
|
|
|
|
or directly receive e-mail messages from ``stdin`` (for locally processing messages from Postfix or Exim4).
|
2014-09-08 19:45:32 -07:00
|
|
|
|
|
2014-09-10 14:38:12 -07:00
|
|
|
|
These ingested messages will be stored in the database in Django models and you can process their content at will,
|
2014-09-08 19:47:28 -07:00
|
|
|
|
or -- if you're in a hurry -- by using a signal receiver.
|
2012-06-27 20:45:01 -07:00
|
|
|
|
|
2021-02-03 21:51:54 -05:00
|
|
|
|
|
|
|
|
|
|
### Usage
|
|
|
|
|
|
|
|
|
|
|
|
1. poetry add django-mailbox
|
|
|
|
|
|
|
|
|
|
|
|
2. After you have installed the package, add django_mailbox to the INSTALLED_APPS setting in your project’s settings.py file.
|
|
|
|
|
|
|
|
|
|
|
|
3. From your project folder, run python manage.py migrate django_mailbox to create the required database tables.
|
|
|
|
|
|
|
|
|
|
|
|
4. Head to your project’s Django Admin and create a mailbox to consume.
|
|
|
|
|
|
a. if you do not want it to delete the messages on the server add these to settings.py
|
|
|
|
|
|
set DJANGO_MAILBOX_DELETE_MESSAGE_FROM_SERVER to false
|
|
|
|
|
|
set DJANGO_MAILBOX_DELETE_MESSAGE_ID_STORE to /path/to/messageid_store.json
|
|
|
|
|
|
|
|
|
|
|
|
5. python manage.py getmail
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-01-22 20:37:11 -08:00
|
|
|
|
- Documentation for django-mailbox is available on
|
|
|
|
|
|
`ReadTheDocs <http://django-mailbox.readthedocs.org/>`_.
|
|
|
|
|
|
- Please post issues on
|
2014-02-24 19:47:12 -08:00
|
|
|
|
`Github <http://github.com/coddingtonbear/django-mailbox/issues>`_.
|
2013-01-22 20:37:11 -08:00
|
|
|
|
- Test status available on
|
2014-02-24 19:47:12 -08:00
|
|
|
|
`Travis-CI <https://travis-ci.org/coddingtonbear/django-mailbox>`_.
|