12,270
edits
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!
m (→Sieve filter) |
mNo edit summary |
||
(7 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:
#(optionally) A sieve filter - to magically sort these messages in to their own IMAP folder
==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,
<syntaxhighlight>▼
▲<syntaxhighlight lang="sieve">
require ["fileinto","imap4flags","variables","regex","mailbox"];
*This won't be able to be added via Roundcube, as you can't paste in raw sieve code there.
==
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).
set :upperfirst "suffix" "${1}";
fileinto :create "INBOX.Filtered.${suffix}";
== Create the folders ==
The sieve filter puts email in to a folder called Filtered/XXX, and as long as XXX matches the suffix in the email address, the messages will get moved to there.
So in your email program:
#
#
[[File:Email folders.png|thumb|none|100|Folder layout in your email client]]
|
edits