iredmail-doc/en_US/faq/customize.maildir.path.md

28 lines
1.0 KiB
Markdown
Raw Normal View History

2016-01-28 17:55:34 -06:00
# Customize maildir path
iRedAdmin offers several settings to customize the maildir path, default values
are stored in file `libs/default_settings.py`, if you need to change them,
please write your own setting in iRedAdmin main config file `settings.py`, so
that your settings will be kept after upgrading iRedAdmin.
```
# It's RECOMMEND for better performance. Samples:
2016-01-29 02:24:36 -06:00
# - hashed: domain.ltd/u/s/e/username-2009.09.04.12.05.33/
2016-01-28 17:55:34 -06:00
# - non-hashed: domain.ltd/username-2009.09.04.12.05.33/
MAILDIR_HASHED = True
# Prepend domain name in path. Samples:
# - with domain name: domain.ltd/username/
2016-01-29 02:24:36 -06:00
# - without: username/
2016-01-28 17:55:34 -06:00
MAILDIR_PREPEND_DOMAIN = True
# Append timestamp in path. Samples:
2016-01-29 02:24:36 -06:00
# - with timestamp: domain.ltd/username-2010.12.20.13.13.33/
# - without timestamp: domain.ltd/username/
2016-01-28 17:55:34 -06:00
MAILDIR_APPEND_TIMESTAMP = True
```
2016-01-29 02:46:54 -06:00
Note: each time you modified iRedAdmin source code (Python source file which
file name ends with `.py`), you must restart Apache or uwsgi (if you're running
Nginx) service to load modified code.