Skip to content

[Bug]: folder exclusion not working propperly #232

@wiltet

Description

@wiltet

Bug Description

Hello,
as first, big thanks to this nice tool.

today I was checking my mails on mail-archiver and did find many mails from excluded folders.

I did try to find out why it is like this and have observed at least two points. It looks like if a email is not readed, it will be back-up even when it is in a excluded folder.
And after I did delete this mail into trash, and it got archived again. Log shows that "Trash" is not excluded, but its defined on exclude folder list.

there must be even more situations, when "exclude folder" does not work, because there where a lot of mails from "sent:xxx", "Trash" and other folders from my exclusion list.
It could be that these where bugs from older builds/versions and got fixed already, but these two bugs are in the last build v2512.1

Steps to Reproduce

...

Application Version

2512.1

Installation Type

Docker

Management Tools

unraid system docker management

Host System

unraid

Mail Provider

runbox.com

Relevant Log Output

this log is only from when one mail was archived from "Trash" (excluded folder)

.....
info: MailArchiver.Services.EmailService[0]
      Skipping excluded folder: Spam for account: xxx
info: MailArchiver.Services.EmailService[0]
      Syncing folder: Trash for account: xxx
info: MailArchiver.Services.EmailService[0]
      Found 1 messages to process in folder Trash for account: xxx
info: MailArchiver.Services.EmailService[0]
      Processing batch of 1 messages (starting at 0) in folder Trash via IMAP
info: MailArchiver.Services.EmailService[0]
      Archived email: Newsletter, From: Newsletter@xxx, To: [email protected], Account: xxx, Attachments: 0, Truncated: No
info: MailArchiver.Services.EmailService[0]
      Sync completed for account: xxx. New: 1, Failed: 0, Deleted: 0
info: MailArchiver.Services.SyncJobService[0]
      Completed sync job 05db90a5-e581-4b59-83ec-99a956e059d2 with status Completed

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions