Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Bug 803415 - Fix for MX lookup during autoconfig #71

Merged
merged 1 commit into from
Oct 29, 2012
Merged

Bug 803415 - Fix for MX lookup during autoconfig #71

merged 1 commit into from
Oct 29, 2012

Conversation

jimporter
Copy link
Contributor

r? @asutherland

This PR fixes MX lookups, notably using lowercase for the domain we get back from MX and also trying to grab the config from the local file store first, which lets us use our special config files for Google (to make it use ActiveSync).

To make this work on Google Apps domains, just copy apps/email/autoconfig/gmail.com to apps/email/autoconfig/google.com. If you need an account on a Google Apps domain to test, I can forward you the auth details of the test account I was given.

I'll issue the PR for gaia once this is merged.

@@ -988,7 +999,7 @@ Autoconfigurator.prototype = {
getConfig: function getConfig(userDetails, callback) {
let [emailLocalPart, emailDomainPart] = userDetails.emailAddress.split('@');
let domain = emailDomainPart.toLowerCase();
console.log('Attempting to get autoconfiguration for:'. domain);
console.log('Attempting to get autoconfiguration for', domain);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you're bit-rotting yourself! Also, that was a pretty cool typo on my part, eh?

@asutherland
Copy link
Contributor

r=asuth

Hopefully this was the cause of most of our gmail user problems!

jimporter pushed a commit that referenced this pull request Oct 29, 2012
Bug 803415 - Fix for MX lookup during autoconfig
@jimporter jimporter merged commit 05289b8 into mozilla-b2g:master Oct 29, 2012
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants