Exemplo 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);
                }
            }
Exemplo 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);
            }
Exemplo n.º 3
0
 public virtual void EndOfExecuteImpl(MailDescriptor mailDescriptor, IResource resMail)
 {
     mailDescriptor.ProcessRecipients(resMail);
     mailDescriptor.ProcessAttachments(resMail);
 }
Exemplo n.º 4
0
 public virtual IResource FindMail(MailDescriptor mailDescriptor, string entryID)
 {
     return(Core.ResourceStore.FindUniqueResource("Email", PROP.EntryID, entryID));
 }
Exemplo n.º 5
0
 public virtual void EndOfInit(MailDescriptor mailDescriptor, IEMessage message)
 {
     mailDescriptor.PrepareRecipients(message);
     mailDescriptor.PrepareAttachments(message);
 }