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
no edit summary
mNo edit summary
(4 intermediate revisions by 2 users not shown)
me-amazon@example.com
me-ebay@example.com
...
me-ANYTHING@example.com
 
or the other way around, if you preferred:
ebay-me@example.com
amazon-me@example.com
...
ANYTHING-me@example.com
 
You also want this to be flexible and work as a 'catch-all' for any addresses you have as your suffix or prefix - you don't want to have to log in to the control page each time you want to create a new prefix/suffix.
 
(you can also use a '''+''' instead of a '''-''' if you wanted too - just alter the settings appropriately below)
 
This is all possible with two things:
*#An alias - set on the Control Pages to - direct these extra addresses to your mailbox
#(optionally) A sieve filter - to magically sort these messages in to their own IMAP folder
*A sieve filter
 
==Alias==
 
==Sieve filter==
Optionally, you can magically move these messages in folders...
Once messages are being sent to your Inbox, we create a sieve filter to automatically move messages to their folder, if it has been made. If the folder hasn't been made, then they will be put in to your Inbox as normal.
 
Once messages are being sent to your Inbox with the alias above, weyou can create a sieve filter to automatically move messages to their folder, if it has beenyou've made. If the folder hasn'talready. been made, then they will be put in to your Inbox as normal.
 
<syntaxhighlight lang="sieve">
require ["fileinto","imap4flags","variables","regex","mailbox"];
 
autoreview, Bureaucrats, editor, Interface administrators, reviewer, Administrators
12,270

edits