snappymail icon indicating copy to clipboard operation
snappymail copied to clipboard

Feature force unspam

Open diroots opened this issue 11 months ago • 5 comments

proposition for feature request : https://github.com/the-djmaze/snappymail/issues/1510

  • add a new sieve action : "Force Unspam" which basically creates a sieve filter like
{
    fileinto "INBOX";
    stop;
}

diroots avatar Mar 22 '24 16:03 diroots

i could test this quickly, and could see in the mail server siece script folder a new entry created from web ui :

image

it seems it still has some labelling issues :

image

and action name in the dropdown :

image

but after saving in the UI, the sieve script was sent to mailserver for the user

diroots avatar Mar 22 '24 17:03 diroots

There is more to it.

https://datatracker.ietf.org/doc/html/rfc9051#section-2.3.2 https://www.rfc-editor.org/rfc/rfc5232.html

  1. removeflag "$Junk";
  2. addflag "$NotJunk"; OR
  3. setflag "$NotJunk"; (which removes all other flags) OR
  4. fileinto :flags "$NotJunk" "INBOX";

Same can be done for "mark as spam" and for "mark as phishing" ($Phishing)

the-djmaze avatar Mar 24 '24 13:03 the-djmaze

There is more to it.

https://datatracker.ietf.org/doc/html/rfc9051#section-2.3.2 https://www.rfc-editor.org/rfc/rfc5232.html

1. `removeflag "$Junk";`

2. `addflag "$NotJunk";`
   OR

3. `setflag "$NotJunk";` (which removes all other flags)
   OR

4. `fileinto :flags "$NotJunk" "INBOX";`

Same can be done for "mark as spam" and for "mark as phishing" ($Phishing)

Hello @the-djmaze should i continue and also add this flag too or this PR will not be merged as per your comments in initial issue already closed?

diroots avatar Mar 26 '24 06:03 diroots

I closed the issue because i removed the rainloop option to disallow fileinto INBOX and just allow it.

This PR can stay open so we can improve your suggestion as i mentioned regarding the flags.

So an option for "not spam" and "spam" should be improved with the flags.

the-djmaze avatar Mar 26 '24 12:03 the-djmaze

This sort of broad filter would also affect systems where there are other destination folders for messages... For example I file my messages into subfolders based on local_part_suffix. Since I run Sieve filters after this step, the destination folder would be lost. Just something to consider.

sevmonster avatar Apr 26 '24 15:04 sevmonster