From 66ffd653993a957eabfc58083be1b0cb2b12b47e Mon Sep 17 00:00:00 2001 From: Matthew Saunders Brown Date: Mon, 3 Jun 2024 11:49:20 -0700 Subject: [PATCH] enable zlib compression related options --- bin/vmail.sh | 7 +++++-- etc/dovecot/conf.d/10-mail.conf | 2 +- etc/dovecot/conf.d/10-master.conf | 1 + 3 files changed, 7 insertions(+), 3 deletions(-) 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