Brummolix / AutoarchiveReloaded

Thunderbird extension for autoarchiving mails
Other
19 stars 5 forks source link

including 'special' folders: bin/trash and drafts #58

Open geonanorch opened 3 years ago

geonanorch commented 3 years ago

Thank you and one star for this add-on, the only recent autoarchiving option I found for Thunderbird. Pity that there is currently no solution for this IMAP offline bug, only drawback I can see.

I saw from the detailed log that some folders are intentionally ignored:

ignore folder '/[Gmail]/Bin' (trash)
ignore folder '/[Gmail]/Drafts' (drafts)
ignore folder '/[Gmail]/Spam' (junk)

In my humble opinion archiving should take place by default for everything, including the 3 folders above --just like it is possible to click 'archive' from within any folder in Thunderbird. I acknowledge that messages in 'junk' and 'drafts' are not expected to get old enough to be archived, but then why make things more complicated for them? As for 'bin' I can definitely see a need: how many time did I find important information in an email, which I had deleted! An option could then be added to exclude 'bin' from the schedule for those requiring it.

Brummolix commented 3 years ago

I guess for most people it is OK to not archive trash and junk, because it is trash and junk ;) Also archiving drafts is often not what you want because it is unfinished work.

It could be an option to still enhance this, but then the default should probably be as it is today.

majurgens commented 2 years ago

I'd also like the option to archive "special" folders. Perhaps as a first version, in the General settings, you could create a new section like "Include these special folders in the auto-archive". This new section would include a checkbox for each of Trash, Junk etc (defaulting to unchecked) that would allow the user to check them (add them to the auto archive process). Maybe the 2nd stage would be to allow this per account. Maybe your code is such that the 2nd stage is easier than the first stage

majurgens commented 2 years ago

If I wanted to code these additional options (well, have a go), how do I build the extension from the code?

Brummolix commented 2 years ago

I had in mind to give users the possibility to freely configure every (sub)folder. But this is more work to do. Adding checkboxes just for trash/Junk is probably much easier. Option 2 (per account) is probably even easier then 1.

Today the following are ignored: trash/junk/outbox/drafts/templates/archives

What happens if you allow "archives" folders when they are configured to be the target of the archive operation (what you do not know easily)? I have not tried this?

If you want to give it a try: See https://github.com/Brummolix/AutoarchiveReloaded/blob/master/devhints.txt for some general infos. Maybe start at https://github.com/Brummolix/AutoarchiveReloaded/blob/2cc3be58176646a9b7d66f0c34752edffaecb6f0/src/backgroundScript/Archiver.ts#L100

Meteor0id commented 7 months ago

Hi, are you still planning to support trash/junk/outbox/drafts/templates/archives ? personally the drafts and trash folder are something I want to archive too and was hoping this plugin would do it.

Brummolix commented 7 months ago

Ah, it is some time ago since this discussion. I made a change to add options for special folders (per account). Please try new beta version https://github.com/Brummolix/AutoarchiveReloaded/releases/download/1.0.0.7_beta/AutoArchiveReloaded-1.0.0.7_beta.xpi if it works for you