AutoarchiveReloaded icon indicating copy to clipboard operation
AutoarchiveReloaded copied to clipboard

[feat] Archive unread unless starred

Open pwnorbitals opened this issue 1 year ago • 1 comments

Hi, my use-pattern is starring messages I'd like to keep (without necessarily reading them), but having auto-archive active for all other messages. Reading through Archiver::shallMessageBeArchived it feels like this use-case isn't supported (all unread messages get archived if their expiration time has reached, regardless of starred status).

https://github.com/Brummolix/AutoarchiveReloaded/blob/0fdd084dad0c275296f7c1744657df41a7aa659d/src/backgroundScript/Archiver.ts#L202-L271

I'm wondering if that's a use case the extension aims to support. Thanks !

pwnorbitals avatar Jul 29 '24 11:07 pwnorbitals

A message is not simply archived if it is unread. For example, if a message is unread and flagged (marked with a star), it will be archived:

  • if archiving of unread messages is enabled
  • and if archiving of flagged messages is enabled, too
  • after the maximum of the both day values

For your scenario you have to setup:

  • enable archive unread after x days
  • do not enable archiving of flagged (marked with a star) messages
  • enable archive tagged messaged after x days
  • enable archive other messages after x days

Did you try?

Brummolix avatar Jul 29 '24 23:07 Brummolix