eM ClienteM Client
All ideas

Support Server Side Mail Filter Rules for IMAP Server

It would be nice if emClient could also support server-side e-mail rules for IMAP servers. Most IMAP servers use Sieve (RFC 5228) for this. The syntax is similar to the syntax in which the rules are also saved during export.

Activity · 9
emclient1426
emclient1426
Sieve support would be great. Being able to add rules directly so sieve would be outstanding.
steffenl
steffenl
Yep, would be a great feature that would be a great enhancement for our company! It would be perfect if the rules file can be selected so it works together with existing rule files, created by for example a webmailer like snappymail (which uses the file rainloop.user.sieve) or others.
michalburger
michalburger
eM Client does support server side rules for some servers that support it such as MS Exchange, M365, SmarterMail or IceWarp. Even though it is true that Sieve format is often used by IMAP servers to store the rules internally, there are typically no way how to retrieve or modify them from the client. Do you have some particular IMAP server on your mind? By the way eM Client stores rules as Sieve as well and supports a complete specification.
basurerito
basurerito
@michalburger - https://github.com/thsmi/sieve . This might give an idea how sieve scripts are fetched, modified and uploaded. We do use Cyrus IMAPD version 2.5.3, not the very latest, but stable
steffenl
steffenl
@michalburger Yes Dovecot (which is the IMAP backend of my company) uses sieve internally for filtering mails with admin defined sieve scripts. But it also allows user sieve scripts that can be edited by a sieve client. For this it supports the ManageSieve service which is made for exactly this. It allows a sieve client "to manage a user's Sieve script collection" (Source: Dovecot doc) that is located on the dovecot server. It's described here: https://doc.dovecot.org/main/core/config/sieve/managesieve.html
indirectlynxogjk
indirectlynxogjk
@michalburger please have a look at the Stalwart server https://stalw.art/docs/sieve/overview
brunokc
brunokc
Postfix (SMTP) + Dovecot (IMAP + LMTP). Dovecot can be used to make the local delivery of messages, and it already supports Sieve. https://doc.dovecot.org/2.4.2/howto/sieve.html
aweigel
aweigel
Mailcow has Sieve Support on Port 4190, Please integrate this as soon as possible!
A. Longa
A. Longa
I'd really love to see native ManageSieve support in eM Client! I'm running my own mail server with Dovecot and SOGo, and being able to manage server-side filters, blacklists, folder rules and automatic vacation replies directly from eM Client would be incredibly useful. There's one compatibility issue worth considering, though: SOGo stores its filtering rules in its own database and generates the corresponding Sieve scripts. External changes may therefore be overwritten the next time someone edits the rules through SOGo. I can see four possible approaches: Integrate with SOGo's rule storage. Have SOGo recognize externally modified Sieve scripts and synchronize its database. Simply manage all Sieve rules exclusively through eM Client, leaving SOGo's rule management unused. Explore an AI-assisted approach, where AI could interpret existing Sieve scripts, translate them into editable rules, generate new ones from natural-language instructions and potentially help synchronize them with applications like SOGo. Option 4 could be especially interesting in the long run. Imagine right-clicking an email and asking eM Client to "Always move messages from this sender to this folder", with the appropriate server-side rule automatically generated! Of course, AI-generated rules would need proper validation, conflict detection and backups before being applied. Synchronizing with SOGo's internal database would also require a reliable integration, not just AI. Personally, I'd already be very happy with option 3. It seems like the simplest and most practical starting point, without requiring changes to SOGo. I wouldn't want perfect SOGo compatibility or AI integration to delay basic ManageSieve support. Those could always come later. Either way, this would be a fantastic addition for those of us running our own mail servers! 👍

More in Mail