Class RecipentList
This class is stored as a blob and therefor any changes to this class is a breaking change
Namespace: SuperOffice.CRM.Mail
Assembly: SoDataBase.dll
Syntax
public class RecipentList : Object
Constructors
RecipentList()
Creates a dictionary with SentEMailInfo objects - these are sorted by date and updated based on the e-mail address
Declaration
public RecipentList()
Methods
GetMostRecentRecipients(String, Int32)
Gets a sorted array of SuperOffice.CRM.Mail.MailAddress objects
Declaration
public MailAddress[] GetMostRecentRecipients(string searchString, int numberOfRecipients)
Parameters
Type | Name | Description |
---|---|---|
String | searchString | The string from which we try to find a match. The operator of this search is "starts with" and the search is case insensitive |
Int32 | numberOfRecipients | The number of recipients in the returned array |
Returns
Type | Description |
---|---|
MailAddress[] | An array of SuperOffice.CRM.Mail.MailAddress objects, sorted according to the time stamp whence it was sent |
UpdateListWithRecipients(MailAddress, DateTime)
Adds a single MailAddress if it is not present in our cache, otherwise it updates the date stamp for the one we have. This ensures that the list is sorted correctly
Declaration
public void UpdateListWithRecipients(MailAddress address, DateTime timeStamp)
Parameters
Type | Name | Description |
---|---|---|
MailAddress | address | The address to add to the cache |
DateTime | timeStamp | The time stamp indicating when it was sent. This is used for sorting the auto-complete list |
UpdateListWithRecipients(MailEnvelope)
Adds all the e-mail addresses in a SuperOffice.CRM.Mail.MailEnvelope
Declaration
public void UpdateListWithRecipients(MailEnvelope mail)
Parameters
Type | Name | Description |
---|---|---|
MailEnvelope | The mail envelope containing a list of e-mail addresses. These addresses will be added to our recipient cache |