[Dovecot] sieve replace dot string for foldername

Robert Schetterer robert at schetterer.org
Wed Apr 11 00:08:56 EEST 2012


Hi, i am playing about mail archive

this is what allready works for me

require
["variables","date","fileinto","mailbox","envelope","subaddress","regex"];

# Extract date info
if currentdate :matches "year" "*" { set "year" "${1}"; }
if currentdate :matches "month" "*" { set "month" "${1}"; }
if currentdate :matches "day" "*" { set "day" "${1}"; }
if envelope :detail :matches "to" "*" { set "to" "${1}"; }

if true {
    fileinto :create "INBOX.${year}.${month}.${day}.${to}";
    stop;
}

but ${to} may have a dot included, foldernames
with dot are not allowed in my dove setup yet ( and i dont want to
change it )

i am looking for a way ( guess regex )
for replace a dot  in string replaced by a space char
on the fly

-- 
Best Regards

MfG Robert Schetterer

Germany/Munich/Bavaria



More information about the dovecot mailing list