COM API: Quick account access

This forum contains features that has been archived. This section contains implemented features, duplicate requests, and requests which we have decided not to implement.
Post Reply

Do you need this feature?

Yes
6
86%
No
1
14%
 
Total votes: 7

User avatar
martin
Developer
Developer
Posts: 6834
Joined: 2003-11-21 01:09
Location: Sweden
Contact:

COM API: Quick account access

Post by martin » 2005-08-12 01:08

In the COM API, it should be possible to fetch an account without having to go through the hMailServer.Domains and hMailserver.Accounts collections. Since these collections may load long lists of objects from the database, performance would be much better if you could access accounts directly, using something like

obApplication.Utilities.AccountByAddress("something@domain.com")


This would be a huge performance enhancement compared to going through accounts and domains since hMailServer could then use the account cache (exists in 4.2).

Post Reply