mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2024-01-19 02:48:50 +00:00
Default imap folders
Create default imap folders for Trash, Drafts and Sent.
This commit is contained in:
parent
dfd3a486d1
commit
aa2ae98b2a
|
@ -27,6 +27,12 @@ if [ -f /tmp/postfix/accounts.cf ]; then
|
|||
mkdir -p /var/mail/${domain}
|
||||
if [ ! -d "/var/mail/${domain}/${user}" ]; then
|
||||
maildirmake "/var/mail/${domain}/${user}"
|
||||
maildirmake "/var/mail/${domain}/${user}/.Sent"
|
||||
maildirmake "/var/mail/${domain}/${user}/.Trash"
|
||||
maildirmake "/var/mail/${domain}/${user}/.Drafts"
|
||||
echo -e "INBOX\nINBOX.Sent\nINBOX.Trash\nInbox.Drafts" >> "/var/mail/${domain}/${user}/courierimapsubscribed"
|
||||
touch "/var/mail/${domain}/${user}/.Sent/maildirfolder"
|
||||
|
||||
fi
|
||||
echo ${domain} >> /tmp/vhost.tmp
|
||||
done < /tmp/postfix/accounts.cf
|
||||
|
|
Loading…
Reference in a new issue