8000 Add features to improve the dev experience by nistei · Pull Request #7 · dominicgisler/imap-spam-cleaner · GitHub
[go: up one dir, main page]

Skip to content

Add features to improve the dev experience - #7

Merged
dominicgisler merged 3 commits into
dominicgisler:masterfrom
nistei:feat/dev-features
Jan 11, 2026
Merged

dominicgisler merged 3 commits into
dominicgisler:masterfrom
nistei:feat/dev-features

Conversation

@nistei
@nistei nistei commented Jan 9, 2026 •
Copy link
Copy Markdown
Contributor

This pull request introduces a new "analyze only" flag, allowing messages to be analyzed for spam without being moved. It also adds a command-line flag to process all inboxes immediately, updates dependencies and Go versions, and improves logging for mailbox discovery. The most important changes are grouped below.

New Features:

  • Added analyze-only command-line flag, which, when enabled, analyzes messages for spam but does not move them.
  • Introduced a --now command-line flag to run all inboxes once immediately, bypassing the scheduler.

Dependency and Environment Updates:

  • Updated Go version and several dependencies in go.mod and Dockerfile for improved compatibility and security.
  • Removed the hard-coded arch to support builds on other architectures.

Logging and Debugging Improvements:

  • Enhanced mailbox discovery logging in the IMAP client initialization to help with debugging and visibility of available mailboxes.

Code Cleanliness:

  • Cleaned up import ordering and removed redundant imports in several files for better readability (Done automatically by IntelliJ).

8000
@nistei
nistei force-pushed the feat/dev-features branch from 20268c1 to c835e18 Compare January 9, 2026 00:25
@dominicgisler
Copy link
Copy Markdown
Owner

Hello Niklas

Thank you very much for your contribution, I really appreciate it!

In my opinion the analyzeOnly option shouldn't be part of an inbox configuration, as it seems to be mainly useful for debug purposes. Please move it to a command-line flag as well.
If it would be needed as a behavior on regular executions, it could be done by setting inbox and spam folder to the same value.

Other than that the PR looks fine, thanks for your work!

@nistei
nistei force-pushed the feat/dev-features branch from c835e18 to 158f7be Compare January 10, 2026 00:33
@nistei
nistei force-pushed the feat/dev-features branch from 158f7be to f8ff40b Compare January 10, 2026 00:39
@nistei
nistei force-pushed the feat/dev-features branch from f8ff40b to 90c3dd0 Compare January 10, 2026 00:40
@nistei
nistei commented Jan 10, 2026
Copy link
Copy Markdown
Contributor Author

I totally agree, it should have been a flag from the beginning.

I changed the analyze-only option to a command-line flag.
To use these options in the inboxes and keep them separate from the YAML config, I introduced a context.

@dominicgisler
dominicgisler merged commit 1b54fe5 into dominicgisler:master Jan 11, 2026
@dominicgisler
Copy link
Copy Markdown
Owner

Thanks for your contribution, really appreciate it. Changes are merged and published as v0.3.2

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.

2 participants

0