Closed
Bug 220246
Opened 21 years ago
Closed 21 years ago
fails to authenticate when copying message to Sent folder
Categories
(MailNews Core :: Networking: IMAP, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: bryner, Assigned: Bienvenu)
Details
(Keywords: regression)
Attachments
(2 files)
661 bytes,
patch
|
Details | Diff | Splinter Review | |
1007 bytes,
patch
|
bryner
:
review+
|
Details | Diff | Splinter Review |
current trunk build, Linux.
If I compose a message prior to logging in to my IMAP server, when I try to send
the message, it is not able to copy it to the Sent folder. The progress dialog
shows that it sends the message ok. Then, while the progress dialog says
"Copying message to Sent folder", I get an alert saying "Login to server
mail.brianryner.com failed." At no point am I prompted for my IMAP password.
Sometimes this alert appears multiple times. At any rate, I then get "The
message was sent successfully, but could not be copied to your Sent folder."
The problem does not occur if I log in to read mail before I send the new
message. Also, if it matters, I'm using authenticated SMTP (no SSL).
I believe this is a recent regression as I do this regularly and have never
noticed a problem.
Reporter | ||
Comment 1•21 years ago
|
||
David, any chance this is a regression from bug 219976?
Keywords: regression
Assignee | ||
Comment 2•21 years ago
|
||
Brian, it's possible, I guess - do you have remember password turned on or not
for that account?
Status: NEW → ASSIGNED
Reporter | ||
Comment 3•21 years ago
|
||
For SMTP, yes. For IMAP, no.
Reporter | ||
Comment 4•21 years ago
|
||
the bug was caused by the fact that rv was still set to a failure code if no
saved password was found... so if aMsgWindow is null, rv was never reset and it
would skip showing the dialog.
Reporter | ||
Updated•21 years ago
|
Attachment #132360 -
Flags: review?(bienvenu)
Assignee | ||
Comment 5•21 years ago
|
||
How about just:
// Get password entry corresponding to the host URI we are passing in.
if (NS_SUCCEEDED(passwordMgrInt->FindPasswordEntry(currServerUri,
NS_LITERAL_STRING(""), NS_LITERAL_STRING(""),
hostFound, userNameFound,
passwordFound))
CopyUCS2toASCII(passwordFound, m_password);
i.e., skip the setting of rv completely? I can make the patch and check it in if
you want, I'm sorry about the regression.
Assignee | ||
Comment 6•21 years ago
|
||
Reporter | ||
Comment 7•21 years ago
|
||
Comment on attachment 132364 [details] [diff] [review]
proposed fix
That's fine too... I was just eliminating a check on rv where it wasn't clear
what we were even checking for failure of (since any real failure would have
caused an early return before that check).
Attachment #132364 -
Flags: review+
Assignee | ||
Comment 8•21 years ago
|
||
both fixes checked in.
Status: ASSIGNED → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Reporter | ||
Updated•21 years ago
|
Attachment #132360 -
Flags: review?(bienvenu)
Updated•20 years ago
|
Product: MailNews → Core
Updated•16 years ago
|
Product: Core → MailNews Core
You need to log in
before you can comment on or make changes to this bug.
Description
•