struggling with pigeonhole date extensions

Oscar del Rio delrio at mie.utoronto.ca
Sun Jul 27 14:01:34 UTC 2014


On 26/07/2014 6:52 PM, Laeeth Isharc wrote:
> I would like to place all messages this year up till the end of March into the specified mail folder. What the snippet below actually seems to do is take any messages this year (whether before or after March).
> Any thoughts?
> if allof(date :value "eq" :originalzone "date" "year" "2014", date :value "le" :originalzone "date" "month" "3") { fileinto "INBOX/2014 up to Mar"; stop; }
>

just guessing, I have not tried...

"month" is always 2 digits, so compare with "03" instead of "3" or force 
numeric comparison with :comparator "i;ascii-numeric"




More information about the dovecot mailing list