internal ImportedEmail(LinkedFolder linkedFolder, string messageId, string @from, string subject, string body, DateTime receivedOn, BodyType bodyType) { this.LinkedFolderId = linkedFolder.Id; this.LinkedFolder = linkedFolder; this.MessageId = messageId; this.ImportedOn = DateTime.UtcNow; this.Subject = subject; this.From = from; this.Body = body; this.ReceivedOn = receivedOn; this.BodyType = bodyType; }
public LinkedFolder AddFolder(string name, string newItemsFolder, string processedItemsFolder) { var folder = new LinkedFolder( this, name, newItemsFolder, processedItemsFolder); this.linkedFolders.Add(folder); return(folder); }
internal ImportedEmail(LinkedFolder linkedFolder, EmailMessage item) : this(linkedFolder, item.Id.UniqueId, item.From.Address, item.Subject, item.Body.Text, item.DateTimeReceived, item.Body.BodyType) { }