Jump to content

This is the support site for Andrews & Arnold Ltd, a UK Internet provider. Information on these pages is generally for our customers but may be useful to others, enjoy!

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

m
===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).
<syntaxhighlight lang="sieve">
set :upperfirst "suffix" "${1}";
fileinto :create "INBOX.Filtered.${suffix}";
</syntaxhighlight>
 
If you're using a + rather than a - to separate the suffix, then adjust the regex in the sieve filter above to be like:
<syntaxhighlight lang="sieve">
if header :regex "X-Delivered-To" "\\+([A-z0-9]+)@" {
</syntaxhighlight>
 
== Create the folders ==
autoreview, Bureaucrats, editor, Interface administrators, reviewer, Administrators
12,270

edits