Criteria

Criteria class

Message matching criteria.

The Criteria type exposes the following members:

Constructors

NameDescription
Criteria()Initializes a new instance of the Criteria class

Properties

NameDescription
from_addressThe sender’s display name or email address.
toThe recipient’s display name or email address. Includes recipients in the “to”, “cc”, and “bcc” header fields.
You can use simply the local part of the email address.
For example, “example” and “example@” both match “example@gmail.com”. This field is case-insensitive.
subjectCase-insensitive phrase found in the message’s subject. Trailing and leading whitespace are be trimmed and adjacent spaces are collapsed.
queryOnly return messages matching the specified query.Supports the same query format as the Gmail search box.
For example, “from:someuser@example.com rfc822msgid:somemsgid@example.com is:unread”.
negated_queryOnly return messages not matching the specified query. Supports the same query format as the Gmail search box.
For example, “from:someuser@example.com rfc822msgid:somemsgid@example.com is:unread”.
has_attachmentWhether the message has any attachment.
exclude_chatsWhether the response should exclude chats.
sizeThe size of the entire RFC822 message in bytes, including all headers and attachments.
size_comparisonHow the message size in bytes should be in relation to the size field.

See Also