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 Filtering: Difference between revisions

m
(14 intermediate revisions by 3 users not shown)
<indicator name="Faults">[[File:Menu-emailadd.svg|link=:Category:Email Features|30px|Back up to the Email Features Category]]</indicator>
= What is Sieve filtering? =
 
*Read email from a number of devices
 
This page explains how to connect t our sieve server using roundcube and a Thunderbird addon, and gives some examples and also further about sieve and the features we have enabled
Also see: [[Sieve Examples]]
 
=Sieve Server Settings=
!Security
|TLS
|You should use TLS for a secure connection, recommendedrequired.
|}
 
 
*RoundCube - our webmail has a Filters option in the settings - We'd recommend this even if you don't usually use webmail.
*[https://addonsgithub.mozilla.orgcom/en-US/thunderbird/addonthsmi/sieve/releases Extension for Thunderbird] (fine for manually editing the script file) '''Important note:''' Use the latest version if the one from the Thunderbird is out of date. [https://github.com/thsmi/sieve/blob/master/nightly/README.mdreleases latest] version (e.g.version sieve-0.2.8.xpi3 or newer) if the released versionhigher doesshould notbe workok.
*[https://www.claws-mail.org/plugin.php?plugin=managesieve Extension for claws-mail] (may be packaged as claws-mail-managesieve). Very similar to the Thunderbird extension.
*There are others, take a look at [http://sieve.info/clients sieve.info]. You'd use the same server, username and password that you do to access your email, and use port 4190, and TLS.
Also see: [[Sieve Examples]]
 
Whatever IMAP email program you use the Sieve filtering will still work. It may be easiest to create and edit the filters using Roundcube webmail even if you don't wish to use Roundcube for reading email.
 
== Using Roundcube Filters ==
Roundcube will let you create filters using a WYSIWYG style editor - with easy to use drop-down options and so on. You can't edit the sieve code in 'raw' format though - but for most people, using Roundcube is probably the easiest way.
 
To create a simple filter to move a few online shop emails in to a folder called shopping:
* [[Sieve-Example:Notify|Notify another mailbox when email arrives]]
* [[Sieve-Example:Move email to a folder|Move email to a folder]]
* [[Sieve-Example:Move email to a suffix folder|Move email to a folder based on a localpart suffix]]
 
 
== Converting From Mozilla Thunderbird to Sieve ==
 
If you use Mozilla (e.g. Thunderbird) and have existing rules created, then they can be converted in to Sieve format on this 3rd party page: [http://wikimozfilter2sieve.aasourceforge.org.uknet/aacustom/mozilla2sievemailfilters.html mozilla2sievehttp://mozfilter2sieve.sourceforge.net/mailfilters.html]. Here are some step by step instruction on moving the filters over:
 
#Open your msgFilterRules.dat file in a text editor (notepad, gedit etc.)
#*This file will be found in your 'Local directory', which can be found in Account Settings - Server Setting - look for the 'Local directory' box at the bottom.
#Copy and paste the text in to the [http://wikimozfilter2sieve.aasourceforge.org.uk/aacustomnet/mozilla2sievemailfilters.html converter]
#Install the ThunderBird ManageSieve Addon:
#*Tools - Addons - Search for Sieve, and Install 'Sieve 0.22'
#Go to Tools - Sieve Message Filters
##Click 'New...'
autoreview, Bureaucrats, editor, Interface administrators, reviewer, Administrators
12,270

edits