Jump to content
Sign in to follow this  
jp10558

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

Recommended Posts

jp10558

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:

foo@bar.baz.com

foo@baz.com

Local Folders

Outgoing Server

and I need to generically set options for

whatever@baz.com

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");

etc...

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  

×