Emailfilters target should allow more characters - at least a slash
After switching from ISPConfig 3 to 3.2 most of my Mailfilters don't work any more.
Reason is the directory separator of dovecot. The default setting is a dot (.), but there are several reasons, why on new servers a slash shall be used and I did this already several years ago for all new dovcot setups (details can be found in Peer Heinleins dovecot book). Now after Upgrade ISPConfig to 3.2 (didn't ever use 3.1!!), I cannot use this combination of Emailfilters and separator / any more...
Since this wasn't a problem in earlier versions I even see this as a bug - because it wasn't ever deinied to use other separators, was it? but the new regex in Email-Filter Function only allows "a-z, 0-9, -, ., _, and {space}" - so with my dovecot setting
namespace inbox {
separator = /
inbox = yes
}
there is no possibility any more to move incoming mails to subdirectories in my case... Additionally it isn't possible without getting trouble to change the separator on a running system with hundredts of existing mailboxes... that shouldn't be done!!
If this regex limitation must really be, then I could imagine to create a configuration value "dovecot directory separator" in the mail-server-settings that could be referenced here in the regex?! Even possible would be: emailfilters always use . but when the sieve file is created, all . are changed to the directory-separator settings... nevertheless I'd prefer to use the real separator already in emailfilter