Support filtering rules to move mails to folders #187

Closed
opened 2022-09-18 16:41:02 +03:00 by IssueBot · 3 comments

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.

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.

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.
Manos Pitsidianakis added the
enhancement
label 2022-09-19 15:58:01 +03:00

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...

There's been some preliminary work for a sieve parser here: https://git.meli.delivery/meli/meli/src/commit/3c847ad26afcc4a4cdcfbdbf70f35be57d0da1ab/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
Manos Pitsidianakis added a new dependency 2022-12-27 22:20:41 +02:00
Manos Pitsidianakis added the
Retired
label 2023-09-07 15:55:30 +03:00
Manos Pitsidianakis removed a dependency 2023-09-07 15:56:43 +03:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: meli/meli#187
There is no content yet.