Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature force unspam #1511

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

diroots
Copy link

@diroots diroots commented Mar 22, 2024

proposition for feature request : #1510

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

@diroots
Copy link
Author

diroots commented Mar 22, 2024

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

@the-djmaze
Copy link
Owner

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)

@diroots
Copy link
Author

diroots commented Mar 26, 2024

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?

@the-djmaze
Copy link
Owner

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.

@sevmonster
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants