Open Bug 467821 Opened 16 years ago Updated 23 days ago

ISP autoconfiguration cannot unselect "Use Authentication on SMTP"

Categories

(Thunderbird :: Account Manager, defect)

x86
Windows Vista
defect

Tracking

(Not tracked)

People

(Reporter: cmtalbert, Unassigned, NeedInfo)

Details

I have the following RDF file that I'm trying to use:

<?xml version="1.0"?>
<!DOCTYPE RDF>
<RDF:RDF
    xmlns:NC="http://home.netscape.com/NC-rdf#"
    xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#">

  <RDF:Description about="NC:ispinfo">
    <NC:providers>
      <!-- Gmail IMAP access -->
      <NC:nsIMsgAccount about="domain:mail-test.mozillamessaging.com">
        <!-- IMAP server info -->
        <NC:incomingServer>
          <NC:nsIMsgIncomingServer>
            <NC:prettyName>Test</NC:prettyName>
            <NC:hostName>mail-test.mozillamessaging.com</NC:hostName>
            <NC:type>imap</NC:type>
            <NC:ServerType-imap>
              <!--<NC:nsIImapIncomingServer>
                <NC:usingSubscription>false</NC:usingSubscription>
                <NC:deleteModel>2</NC:deleteModel>
                <NC:trashFolderName>[Gmail]/Trash</NC:trashFolderName>
            </NC:nsIImapIncomingServer>-->
            </NC:ServerType-imap>
            <NC:loginAtStartUp>true</NC:loginAtStartUp>
            <NC:rememberPassword>true</NC:rememberPassword>
          </NC:nsIMsgIncomingServer>
        </NC:incomingServer>

        <!-- SMTP server info -->
        <NC:smtp>
          <NC:nsISmtpServer>
            <NC:hostname>mail-test.mozillamessaging.com</NC:hostname>
            <NC:description>Test Mail SMTP</NC:description>
          </NC:nsISmtpServer>
        </NC:smtp>
        <NC:UseAuthenticatedSmtp>false</NC:UseAuthenticatedSmtp>
        <NC:smtpRequiresUsername>false</NC:smtpRequiresUsername>
        <NC:smtpCreateNewServer>true</NC:smtpCreateNewServer>
        <NC:smtpUsePreferredServer>true</NC:smtpUsePreferredServer>

        <!-- identity defaults -->
        <NC:identity>
          <NC:nsIMsgIdentity>
          </NC:nsIMsgIdentity>
        </NC:identity>

        <!-- other options -->
        <NC:wizardSkipPanels>true</NC:wizardSkipPanels>
        <NC:wizardShortName>Test Mail Account</NC:wizardShortName>
        <NC:wizardLongName>Test Mail IMAP</NC:wizardLongName>
        <NC:wizardLongNameAccesskey>T</NC:wizardLongNameAccesskey>
        <NC:wizardShow>true</NC:wizardShow>
        <NC:wizardPromote>true</NC:wizardPromote>
        <NC:emailProviderName>Test Mail</NC:emailProviderName>
        <NC:sampleEmail>testXX@mail-test.mozillamessaging.com</NC:sampleEmail>
        <NC:sampleUserName>test01</NC:sampleUserName>
        <NC:emailIDDescription>Test Username:</NC:emailIDDescription>
        <NC:showServerDetailsOnWizardSummary>true</NC:showServerDetailsOnWizardSummary>
      </NC:nsIMsgAccount>

        <!-- smtp server info -->
        <NC:smtp>
          <NC:nsISmtpServer>
            <NC:hostname>mail-test.mozillamessaging.com</NC:hostname>
            <NC:description>Test Mail SMTP</NC:description>
          </NC:nsISmtpServer>
        </NC:smtp>
        <NC:smtpRequiresUsername>false</NC:smtpRequiresUsername>
        <NC:smtpCreateNewServer>true</NC:smtpCreateNewServer>
        <NC:smtpUsePreferredServer>true</NC:smtpUsePreferredServer>

        <!-- identity defaults -->
        <NC:identity>
          <NC:nsIMsgIdentity>
          </NC:nsIMsgIdentity>
        </NC:identity>

      </NC:nsIMsgAccount>
    </NC:providers>
  </RDF:Description>
</RDF:RDF>

However, after the account is created the "Use Authentication" checkbox on the SMTP configuration is checked.  I dug through the code for a while and came up with this line which appears to ALWAYS set the "Use Authentication" flag to true if the account is not NNTP.  Since my account is IMAP, I'm screwed.

http://mxr.mozilla.org/comm-central/source/mailnews/base/prefs/resources/content/AccountWizard.js#210

I think this code needs to be reviewed and changed to reflect the desired ISP provided value.

== Expected ==
The ISP direction for whether or not to use SMTP authentication is respected.

== Actual ==
It isn't.

Shredder version: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1b3pre) Gecko/20081203 Lightning/1.0pre Shredder/3.0b2pre
Severity: normal → S3

Obsolete?

Flags: needinfo?(brendan)
Summary: ISP auto configuration cannot unselect "Use Authentication on SMTP" → ISP autoconfiguration cannot unselect "Use Authentication on SMTP"
You need to log in before you can comment on or make changes to this bug.