Customizing Thunderbird new account wizard – Default selection of account

When you launch Thunderbird for the first time (you have no profile), after being asked to import from other email clients you are presented with the ‘Account Wizard’ ‘new Account Setup’ screen.

Your new ISP file shows as one of the entries (along with RSS News & Blogs, newsgroup account), but the plain-Jane ‘Email account’ is the selected entry instead of your wizard.

As noted earlier, Berkeley University gave me the instructions on how to do this.  I ran into problems getting it to work (Our UNI Email ended up below the RSS selection) until I realized that RSS and our UNIVMS files are being read into the application alphabetically based on the filename (not based on the ‘wizardLongName’ setting in the XML/RDF file).

The secret is to have your XML/RDF filename starting with a character before “R” in the alphabet.  My solution was to rename UNIVMS.XML to aUNIVMS.XML – moving it to the top.

Accountwizard.xul sets the plain-Jane ‘Email account’ before RSS and your ISP files, then Newsgroups.  To edit accountwizard.xul you will need an extraction tool such as WinRAR to open the ‘zipped’ messenger.jar file contents and save them back in original form. 

If you are working from the installed folder for Thunderbird (such as c:\Program Files\Mozilla Thunderbird in Windows) go into bin:\chrome and open the messenger.jar archive.  Inside the content\messenger folder is AccountWizard.xul. 

If you are editing the extracted installation files (when you download the EXE-based installer from Mozilla’s website and launch it – these go into your Windows %TEMP% folder in a subfolder such as lui6.tmp.  Then you edit mail.xpi, drill down into bin:\chrome\messenger.jar\content\messenger

To remove the default button choice, and move your ISP selection (and RSS) to the top, you need to edit accountwizard.xul to remove “selected=true” from under id=”mailaccount” and move the ISP selection to the top:

Before:

<radiogroup id=”acctyperadio” >
        <radio id=”mailaccount” value=”mailaccount”
               label=”&accountTypeMail.label;” accesskey=”&accountTypeMail.accesskey;”
               selected=”true”/>
 
        <vbox datasources=”rdf:ispdefaults”
              containment=”http://home.netscape.com/NC-rdf#providers
              id=”ispBox”
              ref=”NC:ispinfo”>
          <template>
            <rule nc:wizardShow=”true”>
              <radio uri=”…”
                     value=”rdf:http://home.netscape.com/NC-rdf#wizardShortName”
                     label=”rdf:http://home.netscape.com/NC-rdf#wizardLongName”/>
            </rule>
         </template>
        </vbox>
        <radio id=”newsaccount” value=”newsaccount”
               label=”&accountTypeNews.label;” accesskey=”&accountTypeNews.accesskey;”/>
      </radiogroup>

After:

 <radiogroup id=”acctyperadio” >
        <vbox datasources=”rdf:ispdefaults”
              containment=”http://home.netscape.com/NC-rdf#providers
              id=”ispBox”
              ref=”NC:ispinfo”>
          <template>
            <rule nc:wizardShow=”true”>
              <radio uri=”…”
                     value=”rdf:http://home.netscape.com/NC-rdf#wizardShortName”
                     label=”rdf:http://home.netscape.com/NC-rdf#wizardLongName”/>
            </rule>
         </template>
        </vbox>
<radio id=”mailaccount” value=”mailaccount”
               label=”&accountTypeMail.label;” accesskey=”&accountTypeMail.accesskey;”/>
 
        <radio id=”newsaccount” value=”newsaccount”
               label=”&accountTypeNews.label;” accesskey=”&accountTypeNews.accesskey;”/>
              </radiogroup>

This entry was posted in Email applications. Bookmark the permalink.

Leave a Reply