Esempio n. 1
0
            public override void EndOfExecuteImpl(MailDescriptor mailDescriptor, IResource resMail)
            {
                mailDescriptor.ProcessRecipients(resMail);
                IResource resPerson = resMail.GetLinkProp(PROP.From);

                if (resPerson != null)
                {
                    mailDescriptor.UpdateAttachments(resMail);
                }
            }
Esempio n. 2
0
            public override IResource FindMail(MailDescriptor mailDescriptor, string entryID)
            {
                IResource mail = base.FindMail(mailDescriptor, entryID);

                if (mail == null && mailDescriptor._recordKey != null)
                {
                    IResourceList mailList = mailDescriptor.GetMailListByRecordKey();
                    if (mailList.Count != 0)
                    {
                        for (int i = mailList.Count - 1; i > 0; i--)
                        {
                            Mail.ForceDelete(mailList[i]);
                        }
                        return(mailList[0]);
                    }
                }
                return(mail);
            }
Esempio n. 3
0
 public virtual void EndOfExecuteImpl(MailDescriptor mailDescriptor, IResource resMail)
 {
     mailDescriptor.ProcessRecipients(resMail);
     mailDescriptor.ProcessAttachments(resMail);
 }
Esempio n. 4
0
 public virtual IResource FindMail(MailDescriptor mailDescriptor, string entryID)
 {
     return(Core.ResourceStore.FindUniqueResource("Email", PROP.EntryID, entryID));
 }
Esempio n. 5
0
 public virtual void EndOfInit(MailDescriptor mailDescriptor, IEMessage message)
 {
     mailDescriptor.PrepareRecipients(message);
     mailDescriptor.PrepareAttachments(message);
 }