Some contrib modules have drush commands, you may need to specify a user on the command line to get the correct permissions. Older versions of node_export module had this issue, and the drush command needed is:
drush --user=1 node-export
With the latest thunderbird, the string to search for in the config editor to set it to check all folders for new email has changed from:
mail.check_all_imap_folders_for_new to mail.server.default.check_all_folders_for_new
As detailed here: http://kb.mozillazine.org/How_do_I_check_for_new_messages_in_other_folders Which caught me out for a while as I was looking for the old one in the config editor.