Differences
This shows you the differences between two versions of the page.
Previous revision | |||
— | en:nomagic:client_software:thunderbird:sieve [2021/11/12 23:35] (current) – [Configuration] hostmaster | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Sieve management in Thunderbird ====== | ||
+ | |||
+ | <WRAP center round important 65%> | ||
+ | Sieve management in Thunderbird requires to know (or be willing to learn) about the Sieve syntax in order to create your rules. | ||
+ | |||
+ | It's up to you really, but know that this is the **harder** way, and that easy mail filter management can be achieved from within our Sogo Groupware. It's also the recommended method ([[en: | ||
+ | </ | ||
+ | |||
+ | |||
+ | ===== Using sieve plugin in Thunderbird ===== | ||
+ | |||
+ | |||
+ | ===== Installation ===== | ||
+ | |||
+ | The plugin should be found when search for ' | ||
+ | |||
+ | Simply install the extension and you are now ready to go. | ||
+ | |||
+ | ===== Configuration ===== | ||
+ | |||
+ | Below is the workflow step by step to access and create your first Sieve filter. You can create multiple profiles, but keep in mind that only one at a time can be activated. | ||
+ | |||
+ | * After the extension has been installed, you can access your Sieve scripts via **Menu > Tools > Sieve Message Filters**. | ||
+ | |||
+ | {{: | ||
+ | |||
+ | * A new tab opens, with the list of your email accounts configured in Thunderbird. For each of those, you have an option to connect to the Sieve server. \\ If you look at the **Settings** for one of those, you will see the current settings to connect to the Sieve server of your email account. For Nomagic it should like this: | ||
+ | |||
+ | {{: | ||
+ | |||
+ | * Now back to the main tab, click on **Connect** | ||
+ | {{: | ||
+ | |||
+ | <WRAP center round info 95%> | ||
+ | If it's your first script, you < | ||
+ | </ | ||
+ | |||
+ | * In our case a script has been found on the mail server. You can **Edit** that script to see your current rules and modify them or add new ones. | ||
+ | |||
+ | {{: | ||
+ | |||
+ | ===== Management ===== | ||
+ | |||
+ | You are now where the magic happens. You have all the flexibility of Sieve at your fingertips. | ||
+ | |||
+ | I personally use the //raw script// view to set up my filters, which looks like this: | ||
+ | |||
+ | {{: | ||
+ | |||
+ | But you can also test / use the **Script** tab, which is useful to refer to also when you are looking for a specific Sieve keyword: | ||
+ | |||
+ | {{: | ||
+ | |||
+ | <WRAP center round tip 95%> | ||
+ | To be able to use the different | ||
+ | < | ||
+ | require [" | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | <WRAP center round box 95%> | ||
+ | |||
+ | ==== Example ==== | ||
+ | In this example we are setting up a ' | ||
+ | |||
+ | * We identify flag '' | ||
+ | |||
+ | {{en: | ||
+ | |||
+ | * We make sure at least the **imap4flag** action is activated, and we set up our filter. | ||
+ | |||
+ | <WRAP center round info 95%> | ||
+ | Sieve plugin automatically checks for syntax error, which makes it very handy when you add / modify rules | ||
+ | </ | ||
+ | |||
+ | <WRAP center round tip 95%> | ||
+ | It is strongly advised to keep a commented label of each of your rules, as shown on the screenshot, with the format: | ||
+ | < | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | # | ||
+ | # Mail filters (server-side) | ||
+ | # | ||
+ | require [" | ||
+ | |||
+ | if address :is :all " | ||
+ | addflag " | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | That's it, all emails from NOMAGIC' | ||
+ | </ | ||
+ | |||
+ | <WRAP center round tip 95%> | ||
+ | Filters are tested in the order that they appear in the file. If you want to avoid getting through all of them as you don't plan on having 2 filters applied to the same email, declare your filters in a series of '' | ||
+ | |||
+ | <WRAP center round box 95%> | ||
+ | === Example === | ||
+ | |||
+ | < | ||
+ | if address :is :all " | ||
+ | addflag " | ||
+ | } | ||
+ | # rule:[aide] | ||
+ | elsif envelope :detail " | ||
+ | { | ||
+ | fileinto " | ||
+ | } | ||
+ | # rule: | ||
+ | elsif anyof (address :is " | ||
+ | { | ||
+ | fileinto " | ||
+ | } | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | </ | ||
+ | |||
+ | ==== Vacation management ==== | ||
+ | Vacation is plain Sieve syntax, using the right requirements you can set up vacation via your Sieve script. | ||
+ | |||
+ | I would suggest several ways to do that though. | ||
+ | |||
+ | * Manual activation / deactivation | ||
+ | < | ||
+ | require [" | ||
+ | |||
+ | # rule: | ||
+ | if false # change to true and Save to activate the auto-reply. | ||
+ | { | ||
+ | vacation :days 1 :addresses " | ||
+ | I am currently away from keyboard for some days. | ||
+ | I will reply when I get back. | ||
+ | |||
+ | Cheers, | ||
+ | |||
+ | Tux | ||
+ | . | ||
+ | ; | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | * Automatic activation / deactivation of the auto-reply | ||
+ | |||
+ | < | ||
+ | require [" | ||
+ | |||
+ | # Vacation, update the date whenever needed | ||
+ | if allof ( not exists [" | ||
+ | vacation :days 2 :addresses [" | ||
+ | Hello, | ||
+ | I am currently away from keyboard for some days. | ||
+ | I will reply when I get back. | ||
+ | |||
+ | Cheers, | ||
+ | |||
+ | Tux | ||
+ | . | ||
+ | ; | ||
+ | } | ||
+ | </ | ||
+ | → '' | ||
+ | ===== Troubleshooting ===== | ||
+ | |||
+ | The Sieve Thunderbird extension comes with automatic syntax check, and will prevent you from saving until your file is ' | ||
+ | |||
+ | ===== Additional resources ===== | ||
+ | |||
+ | * http:// | ||