Criteria

Criteria class

Message matching criteria.

Constructors

NameDescription
Criteria

Methods

NameDescription
get_ExcludeChatsWhether the response should exclude chats.
get_FromThe sender’s display name or email address.
get_HasAttachmentWhether the message has any attachment.
get_NegatedQueryOnly 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”.
get_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”.
get_SizeThe size of the entire RFC822 message in bytes, including all headers and attachments.
get_SizeComparisonHow the message size in bytes should be in relation to the size field.
get_SubjectCase-insensitive phrase found in the message’s subject. Trailing and leading whitespace are be trimmed and adjacent spaces are collapsed.
get_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.
set_ExcludeChatsWhether the response should exclude chats.
set_FromThe sender’s display name or email address.
set_HasAttachmentWhether the message has any attachment.
set_NegatedQueryOnly 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”.
set_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”.
set_SizeThe size of the entire RFC822 message in bytes, including all headers and attachments.
set_SizeComparisonHow the message size in bytes should be in relation to the size field.
set_SubjectCase-insensitive phrase found in the message’s subject. Trailing and leading whitespace are be trimmed and adjacent spaces are collapsed.
set_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.