mirror of
https://github.com/coddingtonbear/django-mailbox.git
synced 2026-07-09 22:38:19 +02:00
Adding new settings allowing one to specify a list of mimetypes that are permitted to be stored in the message body of the e-mail message model.
This commit is contained in:
parent
8fac7c9711
commit
2a90953283
10 changed files with 180 additions and 18 deletions
|
|
@ -2,11 +2,20 @@
|
|||
Settings
|
||||
========
|
||||
|
||||
+---------------------------------------+--------------+-------------------------------------------------------------------------+
|
||||
| Setting | Default | Notes |
|
||||
+=======================================+==============+=========================================================================+
|
||||
| ``DJANGO_MAILBOX_ADMIN_ENABLED`` | ``True`` | Controls whether mailboxes appear in the Django Admin. |
|
||||
+---------------------------------------+--------------+-------------------------------------------------------------------------+
|
||||
| ``DJANGO_MAILBOX_SKIPPED_EXTENSIONS`` | ``['.p7s']`` | A list of extensions to skip when processing email message attachments. |
|
||||
+---------------------------------------+--------------+-------------------------------------------------------------------------+
|
||||
* ``DJANGO_MAILBOX_ADMIN_ENABLED``
|
||||
* Default: ``True``
|
||||
* Type: ``boolean``
|
||||
* Controls whether mailboxes appear in the Django Admin.
|
||||
* ``DJANGO_MAILBOX_SKIPPED_EXTENSIONS``
|
||||
* Default: ``['.p7s']``
|
||||
* Type: ``list``
|
||||
* A list of extensions to skip when processing e-mail message attachments.
|
||||
* ``DJANGO_MAILBOX_STRIP_UNALLOWED_MIMETYPES``
|
||||
* Default: ``False``
|
||||
* Type: ``boolean``
|
||||
* Controls whether or not we remove mimetypes not specified in ``DJANGO_MAILBOX_PRESERVED_MIMETYPES``.
|
||||
* ``DJANGO_MAILBOX_ALLOWED_MIMETYPES``
|
||||
* Default ``['text/html', 'text/plain']``
|
||||
* Type: ``list``
|
||||
* A list of mimetypes that will remain and be stored in the message payload of the message object. Has no effect unless ``DJANGO_MAILBOX_STRIP_UNALLOWED_MIMETYPES`` is set to ``True``.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue