mirror of
https://github.com/coddingtonbear/django-mailbox.git
synced 2026-07-09 22:38:19 +02:00
Updating documentation.
This commit is contained in:
parent
a3b1e12b25
commit
4e83ae8eb3
7 changed files with 258 additions and 49 deletions
|
|
@ -3,19 +3,58 @@ Settings
|
|||
========
|
||||
|
||||
* ``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``.
|
||||
|
||||
* Default: ``True``
|
||||
* Type: ``boolean``
|
||||
* Controls whether mailboxes appear in the Django Admin.
|
||||
|
||||
* ``DJANGO_MAILBOX_STRIP_UNALLOWED_MIMETYPES``
|
||||
|
||||
* Default: ``False``
|
||||
* Type: ``boolean``
|
||||
* Controls whether or not we remove mimetypes not specified in
|
||||
``DJANGO_MAILBOX_PRESERVED_MIMETYPES`` from the message prior to storage.
|
||||
|
||||
* ``DJANGO_MAILBOX_ALLOWED_MIMETYPES``
|
||||
|
||||
* Default ``['text/html', 'text/plain']``
|
||||
* Type: ``list``
|
||||
* Should ``DJANGO_MAILBOX_STRIP_UNALLOWED_MIMETYPES`` be ``True``, this is
|
||||
a list of mimetypes that will not be stripped from the message prior
|
||||
to processing attachments.
|
||||
Has no effect unless ``DJANGO_MAILBOX_STRIP_UNALLOWED_MIMETYPES``
|
||||
is set to ``True``.
|
||||
|
||||
* ``DJANGO_MAILBOX_TEXT_STORED_MIMETYPES``
|
||||
|
||||
* Default: ``['text/html', 'text/plain']``
|
||||
* Type: ``list``
|
||||
* A list of mimetypes that will remain stored in the text body of the
|
||||
message in the database. See :doc:`message-storage`.
|
||||
|
||||
* ``DJANGO_MAILBOX_ALTERED_MESSAGE_HEADER``
|
||||
|
||||
* Default: ``X-Django-Mailbox-Altered-Message``
|
||||
* Type: ``string``
|
||||
* Header to add to a message payload part in the event that the message
|
||||
cannot be reproduced accurately. Possible values include:
|
||||
|
||||
* ``Missing``: The message could not be reconstructed because the message
|
||||
payload component (stored outside this database record) could not be
|
||||
found. This will be followed by a semicolon (``;``) and a short, more
|
||||
detailed description of which record was not found.
|
||||
* ``Stripped`` The message could not be reconstructed because the message
|
||||
payload component was intentionally stripped from the message body prior
|
||||
to storage. This will be followed by a semicolon (``;``) and a short,
|
||||
more detailed description of why this payload component was stripped.
|
||||
|
||||
* ``DJANGO_MAILBOX_ATTACHMENT_INTERPOLATION_HEADER``
|
||||
|
||||
* Default: ``X-Django-Mailbox-Interpolate-Attachment``
|
||||
* Type: ``string``
|
||||
* Header to add to the temporary 'dehydrated' message body in lieu of
|
||||
a non-text message payload component. The value of this header will be used
|
||||
to 'rehydrate' the message into a proper e-mail object in the event of
|
||||
a message instance's ``get_email_object`` method being called. Value of
|
||||
this field is the primary key of the ``django_mailbox.MessageAttachment``
|
||||
instance currently storing this payload component's contents.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue