Beispiel #1
0
        private IResource GetEmailResource()
        {
            if (_entryID == null)
            {
                Trace("GetEmailResource: entryId = null");
                return(null);
            }
            IResource mail = _state.FindMail(this, _entryID);

            if (_toDeleteResource)
            {
                if (mail != null)
                {
                    Trace("MailDescriptor: deleting email resource in ignored folder ID=" + mail.Id);
                    Mail.ForceDelete(mail);
                }
                return(null);
            }

            _state = _state.BeginUpdate(ref mail);
            if (mail == null)
            {
                _state = _normalState.BeginUpdate(ref mail);
            }
            return(mail);
        }
Beispiel #2
0
 public MailDescriptor(FolderDescriptor folderDescriptor, string entryID,
                       IEMessage message, MDState state)
 {
     _state = state;
     Init(folderDescriptor, entryID, message, null);
     _longBody = message.GetPlainBody(_longBodyMaxSize);
 }
Beispiel #3
0
 public MailDescriptor(FolderDescriptor folderDescriptor, string entryID,
                       IEMessage message, MDState state, string longBody)
 {
     _state = state;
     Init(folderDescriptor, entryID, message, longBody);
 }