server.prettyName (mailnews) attribute is not working

VERIFIED FIXED in M7

Status

MailNews Core
Backend
P3
normal
VERIFIED FIXED
19 years ago
10 years ago

People

(Reporter: ppandit, Assigned: Alec Flett)

Tracking

Trunk
x86
Windows NT

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: fix in hand)

(Reporter)

Description

19 years ago
When making the following call from JavaScript, the prettyname attribute fails.

var server = account.incomingServer;
dump("Got the server: " + server.prettyName + "\n");

The console says:
JavaScript error: uncaught exception: Component returned failure code: 0x8000fff
f [nsIMsgIncomingServer.prettyName, {file: file:///D|/ns/tools/qa/mailnews/tests
pecs/seamonkey/whitebox_tests/alec_test.html, line: 27}]

Par

Updated

19 years ago
QA Contact: lchiang → ppandit
(Assignee)

Updated

19 years ago
Status: NEW → RESOLVED
Last Resolved: 19 years ago
Resolution: --- → FIXED
Target Milestone: M7
(Assignee)

Comment 1

19 years ago
Actually, I fixed this already.
(Reporter)

Updated

19 years ago
Status: RESOLVED → REOPENED
(Reporter)

Comment 2

19 years ago
prettyName does not display any string (see code below).
Using a debug build from June 7

var server = account.incomingServer;
dump("Got the server: " + server.hostnameName + "\n");
  document.write("<font size=+1>Got the server" + "</font> <br>");
  document.write("<blockquote><font size=+1>Displaying server.hostnameName  ==>"
+ server.hostName + "</font><br>");
dump("Got the server: " + server.prettyName + "\n");
  document.write("<font size=+1>Got the server" + "</font> <br>");
  document.write("<blockquote><font size=+1>Displaying server.prettyName  ==>" +
server.prettyName + "</font><br>");

Updated

19 years ago
Resolution: FIXED → ---
(Assignee)

Updated

19 years ago
Status: REOPENED → ASSIGNED
(Assignee)

Comment 3

19 years ago
oh you're right - what I fixed was the JS exception that it was causing, this
should return the hostname if there is no prettyname
(Assignee)

Updated

19 years ago
Whiteboard: fix in hand
(Assignee)

Comment 4

19 years ago
fix ready and waiting to be checked in.
(Assignee)

Updated

19 years ago
Status: ASSIGNED → RESOLVED
Last Resolved: 19 years ago19 years ago
Resolution: --- → FIXED
(Assignee)

Comment 5

19 years ago
Fix checked in.
(Reporter)

Comment 6

19 years ago
Using debug build from 6/21/99:

I am still not seeing the prettyName displayed in my testcase. I'll show it to
Alec.

Par
(Reporter)

Updated

19 years ago
Status: RESOLVED → VERIFIED
(Reporter)

Comment 7

19 years ago
Tested using debug build from 10/28 on Windows NT.
Loaded http://bubblegum/NGDriver/suites/mail/mncompose004.html

Looked in DOS debug window and saw:
Server Type is none
Pretty name is Local Mail
Username name is nobody
Server URI is mailbox://nobody@Local Mail
Hostname is Local Mail

VERIFIED
Product: MailNews → Core
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.