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)

defect

Tracking

(Not tracked)

VERIFIED FIXED

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
Status: NEW → ASSIGNED
OS: Windows NT → All
Priority: P3 → P1
Hardware: PC → All
Target Milestone: M7
I'll try to do this today.
QA Contact: lchiang → ppandit
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.
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.
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
Status: RESOLVED → VERIFIED
The actual function names are GetServersForIdentity() GetIdentitiesForServer() and are implemented in nsMsgAccountManager.cpp Based on code examination - VERIFIED
Product: MailNews → Core
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.