Skip to content

feat: Allow marking spam as read via a sieve filter (ENV MARK_SPAM_AS_READ=1)#3489

Merged
polarathene merged 3 commits intodocker-mailserver:masterfrom
H4R0:mark-spam-read
Aug 20, 2023
Merged

feat: Allow marking spam as read via a sieve filter (ENV MARK_SPAM_AS_READ=1)#3489
polarathene merged 3 commits intodocker-mailserver:masterfrom
H4R0:mark-spam-read

Conversation

@H4R0
Copy link
Copy Markdown
Contributor

@H4R0 H4R0 commented Aug 19, 2023

Description

Added environment variable MARK_SPAM_AS_READ which allows to automatically mark spam mails as read to prevent notifications about them.

Closes #3449

Type of change

  • New feature (non-breaking change which adds functionality)
  • This change requires a documentation update

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation (README.md or the documentation under docs/)
  • If necessary I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

Copy link
Copy Markdown
Member

@polarathene polarathene left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution! 😁

Good work, just some changes to apply:

  • Remove some lines that aren't necessary.
  • Revised ENV docs entry.
  • Slight context on the two spam header sources, co-located beside the sieve script being created.
  • Test should use it's own container name since you're creating a new container instance (in parallel test set)
  • Test should be solving the reference issue justifying the feature, that for some reason spam being delivered to junk mail was triggering new mail delivery notification to the mail client. Unless there's a reason to want to deliver spam to main inbox, and mark it as read (still supported, but not what the reference issue expressed as a problem).
  • Changelog revised slightly, references this PR as other changelog items can be seen to do.

Comment thread docs/content/config/advanced/kubernetes.md Outdated
Comment thread docs/content/config/environment.md Outdated
Comment thread target/scripts/startup/setup.d/security/misc.sh
Comment thread test/tests/parallel/set1/spam_virus/spam_junk_folder.bats Outdated
Comment thread test/tests/parallel/set1/spam_virus/spam_junk_folder.bats Outdated
Comment thread test/tests/parallel/set1/spam_virus/spam_junk_folder.bats Outdated
Comment thread test/tests/parallel/set1/spam_virus/spam_junk_folder.bats Outdated
Comment thread test/tests/parallel/set1/spam_virus/spam_junk_folder.bats Outdated
Comment thread test/tests/parallel/set1/spam_virus/spam_junk_folder.bats Outdated
Comment thread CHANGELOG.md Outdated
@polarathene polarathene added kind/new feature A new feature is requested in this issue or implemeted with this PR service/dovecot area/scripts area/tests area/features kind/improvement Improve an existing feature, configuration file or the documentation area/configuration (file) labels Aug 20, 2023
@polarathene polarathene added this to the v13.0.0 milestone Aug 20, 2023
H4R0 and others added 2 commits August 20, 2023 16:34
@github-actions
Copy link
Copy Markdown
Contributor

Documentation preview for this PR is ready! 🎉

Built with commit: b14d7fd

@H4R0 H4R0 requested a review from polarathene August 20, 2023 14:49
Copy link
Copy Markdown
Member

@georglauterbach georglauterbach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks really good! Thank your for your contribution ❤️ 🚀

Copy link
Copy Markdown
Member

@polarathene polarathene left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fantastic work! 💪

LGTM :)

@polarathene polarathene changed the title Add MARK_SPAM_AS_READ environment variable feat: Allow marking spam as read via a sieve filter (ENV MARK_SPAM_AS_READ=1) Aug 20, 2023
@polarathene polarathene merged commit bb2038e into docker-mailserver:master Aug 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/configuration (file) area/features area/scripts area/tests kind/improvement Improve an existing feature, configuration file or the documentation kind/new feature A new feature is requested in this issue or implemeted with this PR service/dovecot

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feature request: Mark Spam as Read

3 participants