Warning, /pim/libksieve/src/ksievecore/scriptsparsing/autotests/data/test-current-date-custom-ref.siv is written in an unsupported language. File is not indexed.

0001 <?xml version="1.0"?><script><control name="require"><list><str type="quoted">variables</str><str type="quoted">date</str><str type="quoted">fileinto</str><str type="quoted">mailbox</str></list></control><crlf/><crlf/><comment type="hash"> Extract date info</comment><control name="if"><test name="currentdate"><tag>matches</tag><str type="quoted">year</str><str type="quoted">*</str></test><block><action name="set"><str type="quoted">year</str><str type="quoted">${1}</str></action></block></control><crlf/><control name="if"><test name="currentdate"><tag>matches</tag><str type="quoted">month</str><str type="quoted">*</str></test><block><action name="set"><str type="quoted">month</str><str type="quoted">${1}</str></action></block></control><crlf/><crlf/><comment type="hash"> Archive Dovecot mailing list items by year and month.</comment><comment type="hash"> Create folder when it does not exist.</comment><control name="if"><test name="header"><tag>is</tag><str type="quoted">list-id</str><str type="quoted">dovecot.dovecot.org</str></test><block><crlf/><action name="fileinto"><tag>create</tag><str type="quoted">INBOX.Lists.${year}.${month}.dovecot</str></action><crlf/></block></control><crlf/></script>