Auto-complete email address with default domain


Mozilla Thunderbird 1.5 users may have noticed that when you start typing an email address in the mail composition window, Thunderbird no longer automatically adds the default domain to it. You can turn this feature back on, if you’d like. Go to Tools -> Options -> Advanced -> General, and click on “Config Editor.” In the resulting window, search for the setting mail.identity.default.autocompleteToMyDomain. Double-click on it. That should change the value to true. Close the Config Editor, and click on “OK” in the Options panel, and you’re done.

8 Responses

  1. localhost November 10, 2005 / 3:30 am

    Must say I find this great news. I really don’t like the feature. Do you know of a way to disable this in the current TB as well?

  2. Anonymous January 19, 2006 / 5:16 pm

    Thanks! I wondered what happened. I use that feature all the time at work for interoffice email. Your tip worked perfectly.

  3. Anonymous February 2, 2006 / 4:30 pm

    I too became exasperated after moving from WinXP Thunderbird 1.0.7 to Thunderbird 1.5 because all my copius interoffice emails now require (auuuurgggghhhh!) me to add the domain name to all recipients (dozens at a time!). Auuuurrrggghh!

    I went to Tools -> Options -> Advanced -> General -> Config Editor and doubleclicked on the line mail.identity.default.autocompleteToMyDomain = false which then turned that line into mail.identity.default.autocompleteToMyDomain = true

    Then I killed & restarted Thunderbird 1.5 on WinXP.

    But STILL I get this error (which I didn’t get with 1.0.7) whenever I send email without the @domain name attached to EVERY SINGLE recipient (auuuurrrgggghhh!):

    SEND MESSAGE: foo is not a valid e-mail address because it is not of the form user@host. You must correct it before sending the email.

    I doublechecked the prefs.js file (C:Documents and SettingsUSERApplication DataThunderbirdProfiles#######.defaultprefs.js) (note there is no user.js file) and it clearly shows the modification took.

    IS THERE SOME OTHER TRICK that also needs to be set in order for this to work when composing mail for smtp transfer?

  4. Anonymous February 4, 2006 / 2:31 pm

    The user results will vary depending on whether the bloody autocompleat is turned on or off.

    In the older versions of Tbird this worked differently.

    Unfortunatley in Tbird version 1.5 you must turn on autocompleat for this setting to have any effects.
    user_pref(“mail.enable_autocomplete”, true);

    Only then does the domain setting take affect.
    user_pref(“mail.identity.default.autocompleteToMyDomain”, true);

    You can test it but I found I needed both settings in 1.5 but even so the operation is not the same as in previous versions.

    Before it would just send the mail to the correct place without auto compleating. Now it forces me to deal with the annoying autocompleat mechanism which is a royal bother.

    Best I can suggest though.
    Cheers!

  5. Anonymous February 4, 2006 / 3:51 pm

    This link was referenced by a post in netscape.public.mozilla.mail-news titled “Is there a workaround for Thunderbird in a corporate environment?”

    This is a known bug.
    https://bugzilla.mozilla.org/show_bug.cgi?id=312818
    https://bugzilla.mozilla.org/show_bug.cgi?id=316720

    There is a temporary workaround discussed above but the only known solution is to reinstall the older versions of Thunderbird before this bug existed. It is NOT fixed in 1.6 beta as of today.

  6. Anonymous February 13, 2006 / 10:15 am

    I’ve been struggling w/ this issue for a while and have encountered differences between 1.0.7 and 1.5 in the way auto complete works when composing a message and the way the LDAP address book is searched. The auto complete when composing issue seems possible to fix this way:

    In Tbird go to Tools > Options and select the Advanced tab. Click the button for Config Editor. Scroll down to Preference Name, ldap_2autoComplete.directoryServer

    The status should be user set

    The type should be string

    The value should be ldap_2.servers.ServerName where ServerName is the name of your own LDAP. Note that ServerName seems to be the Name that you assign to the server when you set it up under Tools > Options > Composition tab > Addresses > Directory Server > Edit Directories. For example, if you name your server LDAP Directory here the value for the string above should be ldap_2.servers.LDAPDirectory

  7. Anonymous February 17, 2006 / 12:58 pm

    Thanks for that tip. I was wondering why I couldn’t get autocomplete to work after I added my LDAP info.

  8. Matts January 17, 2007 / 3:10 pm

    This feature seemed good at first, but ended up annoying the **** out of me. My girlfriends thunderbird finally went crazy and decided to add her domain to every address she wrote. Even if she deleted the domain it popped right back in…

Comments are closed.