Closed
Bug 7321
Opened 26 years ago
Closed 26 years ago
Need a function to map identity's with incoming servers
Categories
(MailNews Core :: Backend, defect, P1)
MailNews Core
Backend
Tracking
(Not tracked)
VERIFIED
FIXED
M7
People
(Reporter: rhp, Assigned: alecf)
Details
Hi Alec,
I need that function that will allow me to map an identity with an incoming
server so that I can do copy operations for Send Later and FCC operations.
- rhp
Assignee | ||
Updated•26 years ago
|
Status: NEW → ASSIGNED
OS: Windows NT → All
Priority: P3 → P1
Hardware: PC → All
Target Milestone: M7
Assignee | ||
Comment 1•26 years ago
|
||
I'll try to do this today.
Assignee | ||
Comment 2•26 years ago
|
||
Ok, I just added the following function to the account manager:
NS_IMETHOD GetIdentitiesForServer(nsIMsgIncomingServer *server,
nsISupportsArray **_retval);
The reason I return multiple identities is because accounts can have multiple
identities... so for now I would just use *_retval->ElementAt(0) which will just
be the first identity found.
I'll check this in when the tree opens.
Assignee | ||
Comment 3•26 years ago
|
||
oops! Rich just pointed out to me that I wrote the wrong function. Well, no harm
done and that function will be useful anyway.
I'll write GetServersForIdentity() now.
Assignee | ||
Comment 4•26 years ago
|
||
Ok, we're all set, added both:
GetServersByIdentity()
GetIdentitiesByServer()
Both give you back an nsISupportsArray in case there are multiple matches. You
should then use ElementAt(0) to get the first server/identity.
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
The actual function names are
GetServersForIdentity()
GetIdentitiesForServer()
and are implemented in nsMsgAccountManager.cpp
Based on code examination - VERIFIED
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
•