Make Thunderbird a Better IMAP Client
Back in March I started looking for a new mail user agent, commonly referred to as email client. During the last few days I had a little time at my hands and I tried Claws Mail, eM Client, Postbox and Sylpheed. Regarding Postbox I went for the 30-days trial of the full version after I’ve compared the two editions (Postbox and Postbox Express). I set up a few IMAP and POP3 accounts and then I just used each client for a short time.
Once again, I’ll stay true to Thunderbird. To be honest, I liked Postbox a lot but it’s not that much superior to Thunderbird especially if you consider the add-ons situation. What I liked best about Postbox was the way they organized the accounts. That’s where Postbox really shines. So, instead of wasting more time with other clients I just went ahead and did what I wanted to do for a few years – I finally created a nice User.js to store some helpful preferences. I thought I’d share a few of the most important settings that I found with you:
// Thunderbird 3 adds a disk cache. Activate it to cache any remote content.
// Messages and attachments are now cached for IMAP accounts as well.
user_pref("browser.cache.disk.enable", true);
// Grant 50 megabytes of storage
user_pref("browser.cache.disk.capacity", 51200);
Now, let’s move on to the IMAP settings. Here are some subscription settings:
// check every IMAP folder for new messages
// This way you don't have to subscribe to every folder
user_pref("mail.check_all_imap_folders_for_new", true);
// Automatically subscribe to new folders when they are created (or renamed)
user_pref("mail.imap.auto_subscribe", true);
// Automatically unsubscribe from new folders when they are deleted
// Also, unsubscribe from old names of folders when they are renamed
user_pref("mail.imap.auto_unsubscribe", true);
Now, let’s optimize the mail fetching in chunks:
Keep in mind that Google recommends to turn off fetching messages in chunks for its GMail accounts.
// Fetch the message in chunks
user_pref("mail.imap.fetch_by_chunks", true);
// Maximum chunk size to use when fetching IMAP messages in chunks. Defaults to 10240 bytes.
user_pref("mail.imap.max_chunk_size", 40960);
// Don't fetch the message in chunks unless its at least this size. Defaults to 15360 bytes.
user_pref("mail.imap.min_chunk_size_threshold", 98304);
// Initial chunk size to use when fetching IMAP messages in chunks. Defaults to 10240 bytes.
user_pref("mail.imap.chunk_size", 65536);
// Number of bytes to adjust chunk size by when dynamically adjusting the chunk size. Defaults to 2048 bytes.
user_pref("mail.imap.chunk_add", 8192);
// If a chunk is fetched faster than this, it will increase the chunk size to improve throughput. Defaults to 2 seconds.
user_pref("mail.imap.chunk_fast", 2);
// Ideal amount of time it should take to fetch a chunk. Defaults to 4 seconds.
user_pref("mail.imap.chunk_ideal", 4);
Other IMAP settings you may want to consider:
// Download headers for new mail
user_pref("mail.imap.new_mail_get_headers", true);
// Search folder for deleted messages. If none are found the expunge is skipped
user_pref("mail.imap.check_deleted_before_expunge", true);
// Cleanup (expunge) on exit. Messages marked for deletion will be expunged.
user_pref("cleanup_inbox_on_exit", true);
// If you'd rather have them expunged when you delete them in your client uncomment the following line:
// This will also expunge messages marked for deletion after a move operation (moving a msg in a subfolder, for instance)
// user_pref("mail.imap.expunge_after_delete", true);
How to handle attachments:
// fetch attachments only when needed
user_pref("mail.imap.mime_parts_on_demand", true);
// controls how many leels of nested attachments there has to be before fetching the whole message
user_pref("mail.imap.mime_parts_on_demand_max_depth", 15);
// Always fetch the complete contents of a IMAP message unless its size is greater
// than this value (not worth optimizing whats fetched).
// Defaults to 30000 bytes.
user_pref("mail.imap.mime_parts_on_demand_threshold", 30000);
With these settings Thunderbird works very well for me. If you have any suggestions don’t hesitate to comment!
<br />
<br />
[/code]
