Closed Bug 526995 Opened 16 years ago Closed 16 years ago

[Autoconfig] msgWindow is undefined

Categories

(Thunderbird :: Account Manager, defect, P1)

x86
Windows 7

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: giutino, Assigned: bwinton)

Details

Attachments

(2 files, 1 obsolete file)

Those are the steps: 1)Create a new account 2)In mail account setup window I put: My name, CORRECT email address (@Gmail.com), CORRECT password, remember password YES, Continue R-> Shredder has found the settings for your email account Username:My email address Incoming: imap.googlemail.com IMAP 993 SSL/TLS Outgoing: smtp.googlemail.com SMTP 465 SSL/TLS 3)I click on "Create account" R-> Error Creating Account TypeError: msgWindow is undefined 4)I click on "ok" R-> A red string appear near the password field: "Username or password invalid" 5)I click on "start over" 6)I retype all the data like in step 2 and click on "continue" R-> The same response of step 2 7)I click on "Create Account" R-> Error Creating account: Incoming server already exist 8)I click on "Ok" 9)I click on "Cancel" NOTE 1: In the left sidebar of TB, there's no the new account, (all folders visualization) NOTE 2: If i go in the C:\<TB PROFILE FOLDER>\ImapMail now there is a new folder called imap.googlemail.com.sbd
I've tried these steps with my gmail address and a version of TB3 that I built myself just now, and I can't reproduce it. Which version of TB3 were you using? (We might have fixed it since beta 4. If you were using beta 4, would you mind re-trying it with a nightly build?) Are you able to record a screencast, which might show me what you're doing differently to trigger this bug? Thanks, Blake.
Attached file bug's "screencast"
Attached file bug's "screencast" (obsolete) —
Sorry for the triple post, I had problems to send the attachment. I'm using the latest build but I had the same problem with tb3 beta 4. I'm unable to record a screencast, I hope that this ppt will be sufficient
So, we had this AddMailAccount function just sitting there which did this: function AddMailAccount() { let msgWindow = Components.classes["@mozilla.org/messenger/services/session;1"] .getService(Components.interfaces.nsIMsgMailSession) .topmostMsgWindow; NewMailAccount(msgWindow); } which really looks like the right thing, so I'm just going to use that one instead of msgNewMailAccount(). Thanks, Blake.
Assignee: nobody → bwinton
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Attachment #410922 - Flags: superreview?(bienvenu)
Attachment #410922 - Flags: review?(philringnalda)
It's got a patch, and it's a really annoying bug, so I'm asking for blocking-tb3.
Flags: blocking-thunderbird3?
Attachment #410922 - Flags: superreview?(bienvenu) → superreview+
Yeah, "two out of the three ways you can create an account actually work" isn't going to fly.
Flags: blocking-thunderbird3? → blocking-thunderbird3+
Attachment #410899 - Attachment is obsolete: true
Attachment #410899 - Attachment is patch: false
Attachment #410898 - Attachment mime type: application/octet-stream → application/vnd.ms-powerpoint
Comment on attachment 410922 [details] [diff] [review] Check that we have a msgWindow earlier, and pass one in from the "Create a new account" button. Also log exceptions. I tried all three cases (new profile, file | add mail account, and add mail account from account settings), and all three worked. So, r/sr=me, assuming it all works for philor as well.
Attachment #410922 - Flags: review?(philringnalda) → review+
Comment on attachment 410922 [details] [diff] [review] Check that we have a msgWindow earlier, and pass one in from the "Create a new account" button. Also log exceptions. Had to back three quarters of it out to get to where I could see the logging happen, but then it's mighty pretty. Ship it!
Attachment #410922 - Flags: review+
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: