Closed Bug 74903 Opened 25 years ago Closed 25 years ago

POP3: Display the error messages sent by the server.

Categories

(MailNews Core :: Networking: POP, defect, P2)

x86
Windows NT
defect

Tracking

(Not tracked)

VERIFIED FIXED
mozilla0.9

People

(Reporter: naving, Assigned: naving)

Details

(Whiteboard: [nsbeta1+])

Attachments

(2 files)

Currently we do not display messages sent by the server if a certain command fails.
Keywords: nsbeta1
Summary: Display the error messages sent by the server. → Display the error messages sent by the server.
Attached patch proposed fix.Splinter Review
This patch displays the error message sent by the server in response to a particular command. Previously we were just displaying a general message "An error has occured....". cc mscott and sspitzer for r/sr
Summary: Display the error messages sent by the server. → POP3: Display the error messages sent by the server.
Couple comments: 1) you should probably use nsXPIDLStrings for serverSaidPrefix, serverResponse, and alertString. that way you won't have to spend time worrying about freeing the memory. 2) is m_commandResponse a char * (nsCString)? is that why we have to call get new unicode on it instead of just using it? You could probably get rid of serverResponse variable and just call .AppendWithConversion(m_commandResponse.get()) 3) message.AppendWithConversion(' '); could be written as: message.Append(NS_LITERAL_STRING(' ').get()); . this is going to have one less memory allocation on some platforms. everything else looks good.
revised patch.
Whiteboard: [nsbeta1+]
Priority: -- → P2
Target Milestone: --- → mozilla0.9
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
fix checked in.
QA Contact: esther → sheelar
navin, what error messages? what are the commands. need more information to verify this bug. thanks
If you see carefully some of messages in the error dialogs have changed and they always have " The mail server responded : ......". One common one is when you enter wrong password.
Buildid: 2001042606 win98, mac, linux verified few error messages based on navin's attachment on 2001-04-05 18:43
Status: RESOLVED → VERIFIED
Product: MailNews → Core
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: