Ejemplo n.º 1
0
 internal cEnvelope(DateTime?pSent, cCulturedString pSubject, string pBaseSubject, cAddresses pFrom, cAddresses pSender, cAddresses pReplyTo, cAddresses pTo, cAddresses pCC, cAddresses pBCC, cHeaderFieldMsgIds pInReplyTo, cHeaderFieldMsgId pMessageId)
 {
     Sent        = pSent;
     Subject     = pSubject;
     BaseSubject = pBaseSubject;
     From        = pFrom;
     Sender      = pSender;
     ReplyTo     = pReplyTo;
     To          = pTo;
     CC          = pCC;
     BCC         = pBCC;
     InReplyTo   = pInReplyTo;
     MessageId   = pMessageId;
 }
Ejemplo n.º 2
0
        internal static bool TryConstruct(string pName, IList <byte> pValue, out cHeaderFieldMsgId rMsgId)
        {
            if (pValue == null)
            {
                rMsgId = null; return(false);
            }

            cBytesCursor lCursor = new cBytesCursor(pValue);

            if (!lCursor.GetRFC822MsgId(out var lMsgId) || !lCursor.Position.AtEnd)
            {
                rMsgId = null;
                return(false);
            }

            rMsgId = new cHeaderFieldMsgId(pName, new cBytes(pValue), lMsgId);
            return(true);
        }