示例#1
0
 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;
 }
示例#2
0
文件: Inbox.cs 项目: niaher/inboxy
        public LinkedFolder AddFolder(string name, string newItemsFolder, string processedItemsFolder)
        {
            var folder = new LinkedFolder(
                this,
                name,
                newItemsFolder,
                processedItemsFolder);

            this.linkedFolders.Add(folder);

            return(folder);
        }
示例#3
0
 internal ImportedEmail(LinkedFolder linkedFolder, EmailMessage item)
     : this(linkedFolder, item.Id.UniqueId, item.From.Address, item.Subject, item.Body.Text, item.DateTimeReceived, item.Body.BodyType)
 {
 }