Thunderbird config to refresh all imap folders

Under Edit ->Preferences -> Advanced -> Config Editor set the following parameter
user_pref(“mail.check_all_imap_folders_for_new”, true);
And if you don’t want the sending bar that pops up set the following parameter
user_pref(“mailnews.show_send_progress”, false);