How to archive the emails in Thunderbird to monthly archive folders

emailgmailimapthunderbird

I'm using x64 Linux Mint 13 (Maya), which is based on Ubuntu 12.04 (Precise). The current version of Thunderbird installed is 17.0.2. My goal is to archive my messages into custom folders that are a) separated by month, as shown:

Monthly archive folders

and b) stored in my Gmail account, not in the Local Folders are of Thunderbird. However, the Archive Options are greyed out unless I select Local Folders, as shown:

enter image description here

On a different system, one running Ubuntu 12.04 x32 itself (not a Linux Mint derivative) and running Thunderbird 17.0 (not 17.0.2) the Archive Options button is not greyed out and I can set monthly folders as an option. Archiving works properly, and the monthly folders are created automatically.

How can I archive my emails to these monthly folders in Thunderbird 17.0.2? Using Gmail's All Mail folder is not an option in Thunderbird because that folder in my gmail account has hundreds of thousands of emails, and enabling it in IMAP slows the program drastically.

Best Answer

There is a config value called mail.identity.default.archive_granularity (or mail.identity.[id of account].archive_granularity) for the archive behaviour with these possible values :

  • 0 for none
  • 1 for year
  • 2 for year/month

See details in the New Archives Folder article on MozillaZine Knowledge Base.

You can set it manually in Edit > Preferences > Advanced > General tab > Config editor and then search for the specific key to set it to 2 in your case.

Maybe it will solve your problem.