Support filtering rules to move mails to folders #187
Labels
No Label
IMAP
JMAP
Maildir
Retired
User Experience
User Interface
bsd
bug
contacts
currently worked on
documentation
duplicate
easy
enhancement
help wanted
invalid
linux-gnu
macos
mbox
notmuch
question
security
wishlist
wontfix
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: meli/meli#187
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
Anonymous reports:
Maybe you've already considered this and decided against but I would
really find it valuable if simple filtering rules would be supported,
e.g., as done in alpine/pine to move a mail to another folder based on
the subject prefix or To/CC/From.
Otherwise one would have to use procmail or something like that but
since meli already has IMAP support, it would make more sense to have it
in one solution.
I guess the question would be what this filtering would look like. I wouldn't want to introduce a custom DSL just for meli 🤔. There's already code for connecting to a manage sieve connection and a REPL binary in the repository
src/managesieve.rs
that lets you interact with an IMAP's sieve filters but nothing fancier. I will see how difficult it would be to parse sieve since there there are many RFC extensions etc, and offer optional client-side filtering for all backends.There's been some preliminary work for a sieve parser here:
3c847ad26a/melib/src/sieve.rs
procmail syntax is too arcane and bad imho. I think sieve even though not novel has promise as established work.
I'm still thinking about how to integrate this on the client frontend...
Tracking PR: https://git.meli.delivery/meli/meli/pulls/174