Hunny Software Library Reference

Imap4Client.Store Method

Sends a STORE command.

Overload List

Sends a STORE command with a range of message sequence numbers.

public void Store(int,int,string,string);

Sends a STORE command with a single message sequence number.

public void Store(int,string,string);

Sends a STORE command with a set of message sequence numbers.

public void Store(string,string,string);

Remarks

A STORE command requests the server to change the values of the flags for specified messages. The server responds with one or more FETCH commands that indicate the new values of the flags.

The third version of the overloaded method allows flags for multiple messages to be changed, as specified by a set of message sequence numbers. The messageSet parameter should specify a set of message sequence numbers in the syntax specified in RFC 3501. In this syntax, individual sequence numbers or sequence number ranges are separated by commas, and ranges are specified using a colon.

Example:

            void foo(Imap4Client client)
            {
                String set = "99,101:103";
                String item = "+FLAGS";
                String value = "(\Deleted)";
                client.Store(set, item, value);
            }
            

See Also

Imap4Client Class | Hunny.Mail Namespace | FetchResponse | STORE command in the IMAP4 specification