Warning, /pim/libksieve/src/ksieveui/autocreatescripts/autotests/data/test-current-date-custom.siv is written in an unsupported language. File is not indexed.
0001 require ["variables","date","fileinto","mailbox"]; 0002 0003 # Extract date info 0004 if currentdate :matches "year" "*" { set "year" "${1}"; } 0005 if currentdate :matches "month" "*" { set "month" "${1}"; } 0006 0007 # Archive Dovecot mailing list items by year and month. 0008 # Create folder when it does not exist. 0009 if header :is "list-id" "dovecot.dovecot.org" { 0010 fileinto :create "INBOX.Lists.${year}.${month}.dovecot"; 0011 }