Example #1
0
        // +FLAGS <flag list>
        //     Add the argument to the flags for the message.  The new value
        //     of the flags is returned as if a FETCH of those flags was done.
        public static ImapStoreDataItem AddFlags(ImapMessageFlag flag, params ImapMessageFlag[] flags)
        {
            if (flag == null)
            throw new ArgumentNullException("flag");

              return AddFlags(new string[] {}, flags.Prepend(flag));
        }
Example #2
0
 private static ImapSearchCriteria ModSeq(ulong modSequenceValzer, ImapMessageFlag entryFlagName, ImapString entryType)
 {
     if (entryType == null)
     return new ImapSearchCriteria(new[] {ImapCapability.CondStore},
                               "MODSEQ",
                               modSequenceValzer.ToString());
       else
     return new ImapSearchCriteria(new[] {ImapCapability.CondStore},
                               "MODSEQ",
                               new ImapQuotedString(string.Format("/flags/{0}", entryFlagName.ToString())),
                               entryType,
                               modSequenceValzer.ToString());
 }
Example #3
0
        // UNKEYWORD <flag>
        //     Messages that do not have the specified keyword flag set.
        public static ImapSearchCriteria Unkeyword(ImapMessageFlag flag)
        {
            if (flag == null)
            throw new ArgumentNullException("flag");

              return new ImapSearchCriteria("UNKEYWORD", flag.ToString());
        }
Example #4
0
        public static ImapSearchCriteria ModSeqSharedEntry(ulong modificationSequence, ImapMessageFlag flag)
        {
            if (flag == null)
            throw new ArgumentNullException("flag");

              return ModSeq(modificationSequence, flag, "shared");
        }