Settings¶
DJANGO_MAILBOX_ADMIN_ENABLED- Default:
True - Type:
boolean - Controls whether mailboxes appear in the Django Admin.
- Default:
DJANGO_MAILBOX_STRIP_UNALLOWED_MIMETYPES- Default:
False - Type:
boolean - Controls whether or not we remove mimetypes not specified in
DJANGO_MAILBOX_PRESERVED_MIMETYPESfrom the message prior to storage.
- Default:
DJANGO_MAILBOX_ALLOWED_MIMETYPES- Default
['text/html', 'text/plain'] - Type:
list - Should
DJANGO_MAILBOX_STRIP_UNALLOWED_MIMETYPESbeTrue, this is a list of mimetypes that will not be stripped from the message prior to processing attachments. Has no effect unlessDJANGO_MAILBOX_STRIP_UNALLOWED_MIMETYPESis set toTrue.
- Default
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 Message Storage Details.
- Default:
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.StrippedThe 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.
- Default:
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_objectmethod being called. Value of this field is the primary key of thedjango_mailbox.MessageAttachmentinstance currently storing this payload component’s contents.
- Default:
DJANGO_MAILBOX_ATTACHMENT_UPLOAD_TO- Default:
mailbox_attachments/%Y/%m/%d/ - Type:
string - Attachments will be saved to this location. Specifies the
upload_tosetting for the attachment FileField. For more on FileFields and upload_to, see the Django docs
- Default:
DJANGO_MAILBOX_MAX_MESSAGE_SIZE- Default:
False - Type:
integer - If this is set, it will be read as a number of
bytes. Any messages above that size will not be
downloaded.
2000000is 2 Megabytes.
- Default:
DJANGO_MAILBOX_STORE_ORIGINAL_MESSAGE- Default:
False - Type:
boolean - Controls whether or not we store original messages in
emlfield
- Default: