Exemplo n.º 1
0
        /// <summary>
        ///   The FETCH command retrieves data associated with a message in the
        ///   mailbox.  The data items to be fetched can be either a single atom
        ///   or a parenthesized list.
        ///   http://tools.ietf.org/html/rfc3501#section-6.4.5
        /// </summary>
        /// <param name = "set">The list of ids of the messages to fetch.</param>
        /// <param name = "query">The query, consisting of message parts to fetch.</param>
        public FetchImapResponse Fetch(SequenceSet set, string query)
        {
            var text     = string.Format("FETCH {0} {1}", set, query);
            var command  = new ImapCommand(text);
            var reader   = SendAndReceive(command);
            var response = new FetchImapResponse();

            response.Parse(reader);
            return(response);
        }
Exemplo n.º 2
0
        /// <summary>
        ///   The FETCH command retrieves data associated with a message in the
        ///   mailbox.  The data items to be fetched can be either a single atom
        ///   or a parenthesized list.
        ///   http://tools.ietf.org/html/rfc3501#section-6.4.5
        /// </summary>
        /// <param name = "set">The list of ids of the messages to fetch.</param>
        /// <param name = "query">The query, consisting of message parts to fetch.</param>
        public FetchImapResponse Fetch(SequenceSet set, string query)
        {
            var text = string.Format("FETCH {0} {1}", set, query);
            var command = new ImapCommand(text);
            var reader = SendAndReceive(command);
            var response = new FetchImapResponse();

            response.Parse(reader);
            return response;
        }