Method | Description | |
---|---|---|
Convert ( MailMessage mailMessage ) : Entities.MailMessage |
Converts Input.MailMessage to Entities.MailMessage. If sender or receivers isn't exist then they will be added to repository If email forwarded then sender will be taken from body MailMessageParserThunderbird
|
|
MailMessagePersister ( IRepository repository, IEmailClient emailClient, IInquiryFactory inquiryFactory, IMailMessageParserFactory mailMessageParserFactory ) : System | ||
ProcessMessage ( object sender, |
Method | Description | |
---|---|---|
AddNewPersonToRepository ( System.Net.Mail.MailAddress mailOfPerson, System.DateTime dateOfIncomingMail ) : |
Create new person in repository
|
|
createInquiry ( Entities convertedMessage ) : void | ||
isForwardedMailMessage ( MailMessage mailMessage ) : bool |
Returns true if mail message have fwd: or fw: in subject
|
public Convert ( MailMessage mailMessage ) : Entities.MailMessage | ||
mailMessage | MailMessage | Input.MailMessage type of message |
return | Entities.MailMessage |
public MailMessagePersister ( IRepository repository, IEmailClient emailClient, IInquiryFactory inquiryFactory, IMailMessageParserFactory mailMessageParserFactory ) : System | ||
repository | IRepository | |
emailClient | IEmailClient | |
inquiryFactory | IInquiryFactory | |
mailMessageParserFactory | IMailMessageParserFactory | |
return | System |
public ProcessMessage ( object sender, |
||
sender | object | |
args | ||
return | void |