2016-05-19 06:51:20 -05:00
<!DOCTYPE html>
2016-01-28 17:55:34 -06:00
< html >
< head >
< meta http-equiv = "Content-Type" content = "text/html; charset=utf-8" / >
< title > Customize maildir path< / title >
< link rel = "stylesheet" type = "text/css" href = "./css/markdown.css" / >
< / head >
< body >
< div id = "navigation" >
2016-04-19 12:48:51 -05:00
< a href = "/index.html" target = "_blank" >
< img alt = "iRedMail web site"
src="./images/logo-iredmail.png"
style="vertical-align: middle; height: 30px;"
/>
< span > iRedMail< / span >
< / a >
2016-02-29 02:15:19 -06:00
// < a href = "./index.html" > Document Index< / a > < / div > < h1 id = "customize-maildir-path" > Customize maildir path< / h1 >
2016-01-28 17:55:34 -06:00
< p > iRedAdmin offers several settings to customize the maildir path, default values
are stored in file < code > libs/default_settings.py< / code > , if you need to change them,
please write your own setting in iRedAdmin main config file < code > settings.py< / code > , so
that your settings will be kept after upgrading iRedAdmin.< / p >
< pre > < code > # 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
< / code > < / pre >
< p > Note: each time you modified iRedAdmin source code (Python source file which
file name ends with < code > .py< / code > ), you must restart Apache or uwsgi (if you're running
2016-05-19 06:51:20 -05:00
Nginx) service to load modified code.< / p > < div class = "footer" >
< p style = "text-align: center; color: grey;" > All documents are available in < a href = "https://bitbucket.org/zhb/iredmail-docs/src" > BitBucket repository< / a > , and published under < a href = "http://creativecommons.org/licenses/by-nd/3.0/us/" target = "_blank" > Creative Commons< / a > license. You can < a href = "https://bitbucket.org/zhb/iredmail-docs/get/tip.tar.bz2" > download the latest version< / a > for offline reading. If you found something wrong, please do < a href = "http://www.iredmail.org/contact.html" > contact us< / a > to fix it.< / p >
< / div >
< script type = "text/javascript" >
2016-01-28 17:55:34 -06:00
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-3293801-21', 'auto');
ga('send', 'pageview');
< / script >
< / body > < / html >