Sieve-Example:Move email to a suffix folder: Difference between revisions

 
===Variations===
You can create the folders automatically if you wanted add :create, - but some mail clients won't refresh their folder list until they are restarted. We also title case the new folder name - eg it will be called Amazon (capital A).
fileintoset :createupperfirst "suffix" "INBOX.Filtered.${suffix1}";
fileinto :create "INBOX.Filtered.${suffix}";
 
== Create the folders ==