diff --git a/bin/vmail.sh b/bin/vmail.sh index 32d18da..ea3baf5 100755 --- a/bin/vmail.sh +++ b/bin/vmail.sh @@ -90,7 +90,7 @@ function vmail::yesno() { function vmail:getoptions () { local OPTIND - while getopts "ha:b:d:e:f:gj:cp:q:r:s:tk:gl:m:o:u:vx" opt ; do + while getopts "ha:b:d:e:f:g:j:cp:q:r:s:tk:gl:m:o:u:vwxy:" opt ; do case "${opt}" in h ) # display help and exit help @@ -162,7 +162,7 @@ function vmail:getoptions () { fi ;; g ) # glob (wildcard) search - glob=${OPTARG,,} + glob=${OPTARG} ;; j ) # Filter Junk filter=${OPTARG} @@ -222,6 +222,9 @@ function vmail:getoptions () { x ) # eXecute - don't prompt for confirmation execute=true ;; + y ) # DirectorY - Maildir directory/folder inside mailbox + directory="${OPTARG}" + ;; \? ) echo "Invalid option: $OPTARG" exit 1 diff --git a/etc/dovecot/conf.d/10-mail.conf b/etc/dovecot/conf.d/10-mail.conf index 0327b36..0480c88 100644 --- a/etc/dovecot/conf.d/10-mail.conf +++ b/etc/dovecot/conf.d/10-mail.conf @@ -215,7 +215,7 @@ mail_privileged_group = mail # Space separated list of plugins to load for all services. Plugins specific to # IMAP, LDA, etc. are added to this list in their own .conf files. -mail_plugins = $mail_plugins quota +mail_plugins = $mail_plugins quota zlib ## ## Mailbox handling optimizations diff --git a/etc/dovecot/conf.d/10-master.conf b/etc/dovecot/conf.d/10-master.conf index a8fc5c9..78c63aa 100644 --- a/etc/dovecot/conf.d/10-master.conf +++ b/etc/dovecot/conf.d/10-master.conf @@ -68,6 +68,7 @@ service imap { # Most of the memory goes to mmap()ing files. You may need to increase this # limit if you have huge mailboxes. #vsz_limit = $default_vsz_limit + vsz_limit = 1024M # Max. number of IMAP processes (connections) #process_limit = 1024