Skip to content

Added glob pattern support to imapfetch.py skiplist#415

Open
jsuto wants to merge 1 commit intomasterfrom
imap-fix-3
Open

Added glob pattern support to imapfetch.py skiplist#415
jsuto wants to merge 1 commit intomasterfrom
imap-fix-3

Conversation

@jsuto
Copy link
Owner

@jsuto jsuto commented Feb 2, 2026

Fixes #413

With this change, the -x / --skip-list option now supports glob patterns via fnmatch. Examples:

  • -x "shared/*" — skips shared/aaa, shared/bbb/ccc, etc.
  • -x "shared/*,junk,trash" — combines prefix exclusion with exact names
  • -x "shared*" — skips shared, shared/aaa, sharedstuff, etc.
  • -x "junk" — still works as before (exact match is a valid glob pattern)

The matching is case-insensitive to handle servers that return folder names in varying case.

Signed-off-by: Janos SUTO <sj@acts.hu>
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.

[FEATURE] imapfetch skip shared folders and subfolders

1 participant