Jump to content
Sign in to follow this  

Parse Thunderbirds Prefs.js?(was Work with Thunderbird)

Recommended Posts


Is there a way to open up Thunderbird's Account Options dialog and select a specific (from multiple) e-mail account when I don't know *where* in the list it is?

Or just some other way to script settings for Thunderbird?

For instance, I have these selections for accounts:



Local Folders

Outgoing Server

and I need to generically set options for


from the list, and in the Outgoing SMTP server, how might I do this?

I found out I can do what I want from editing prefs.js - only one problem then, I have to take a list of prefs:

user_pref("mail.server.server8.directory-rel", "server");

user_pref("mail.server.server8.hostname", "server");

user_pref("mail.server.server8.name", "mailaddress");

user_pref("mail.server.server8.type", "imap");

user_pref("mail.server.server8.userName", "username");

user_pref("mail.server.server9.directory", "folder");

user_pref("mail.server.server9.directory-rel", "server");

user_pref("mail.server.server9.hostname", "server");

user_pref("mail.server.server9.name", "mailaddress");

user_pref("mail.server.server9.type", "imap");

user_pref("mail.server.server9.userName", "username");


And figure out what the last server# is. It could b e any number.

Any good code to pull out server# ...? In this case I'd want server9....

Edited by jp10558

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.