Skip to content

feature request: Mark Spam as Read #3449

@H4R0

Description

@H4R0

Context

While Spam/Junk is detected and moved into the Junk folder it still pops up as unread messages.

Junk detection is pretty good so it would make sense to mark the mails as read so they don't bother the user.

I did this myself for some time using a sieve filter and haven't missed any important messages so far.

Description

Just like MOVE_SPAM_TO_JUNK there should be a MARK_SPAM_AS_READ environment variable.

If MARK_SPAM_AS_READ is set to 1 it will create a sieve filter with the following content:

if header :contains "X-Spam-Flag" "YES" {
    setflag "\\Seen";
}

Alternatives

Manual setup via sieve filter, maybe added to documentation.

Applicable Users

Any user that is annoyed by getting Spam/Junk which has to be marked as read / opened.

Are you going to implement it?

Yes, because I know the probability of someone else doing it is low and I can learn from it.

What are you going to contribute?

See Description.

I created this issue to discuss whether this should actually be implemented, any feedback is welcome.

Note: to test whether the sieve filter works you can send yourself a mail with the test string:
XJS*C4JDBQADN1.NSBN3*2IDNEN*GTUBE-STANDARD-ANTI-UBE-TEST-EMAIL*C.34X

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/new featureA new feature is requested in this issue or implemeted with this PRmeta/needs triageThis issue / PR needs checks and verification from maintainers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions