1
0
Fork 0

Setting for original message upload_to

Also changed the default from "messages" to separate-by-date
directories "mailbox_messages/%Y/%m/%d/"
This commit is contained in:
Federico Di Dio 2025-12-19 13:17:05 +01:00
parent eec7fb76f9
commit 3b50b052ef
4 changed files with 47 additions and 5 deletions

View file

@ -81,6 +81,15 @@ Settings
* Type: ``boolean``
* Controls whether or not we store original messages in ``eml`` field
* ``DJANGO_MAILBOX_ORIGINAL_MESSAGE_UPLOAD_TO``
* Default: ``mailbox_messages/%Y/%m/%d/``
* Type: ``string``
* If original messages saving is enabled, they will be saved to this location.
Specifies the ``upload_to`` setting for the eml FileField. For more on
FileFields and upload_to, see the
`Django docs <https://docs.djangoproject.com/en/dev/topics/http/file-uploads/#handling-uploaded-files-with-a-model>`__
* ``DJANGO_MAILBOX_DEFAULT_CHARSET``
* Default: ``iso8859-1``