Query Fields¶
This section contains the query keywords which
can be used with inbox.select. The keywords
can be imported from redbox.query.
Some of the fields take arguments and some of them
don’t. The arguments should be passed as a call,
for example FROM('mikael.koli@example.com').
Those that don’t take arguments should be passed
as is, for example SEEN.
Read more about the keywords from RFC3501.
Field Definitions¶
- ALL¶
All messages.
Generic Flags
- ANSWERED¶
Messages with
\Answeredflag set.- UNANSWERED¶
Messages without
\Answeredflag set.- DELETED¶
Messages with
\Deletedflag set.- UNDELETED¶
Messages without
\Deletedflag.- DRAFT¶
Messages with
\Draftflag set.- UNDRAFT¶
Messages without
\Draftflag.- FLAGGED¶
Messages with
\Flaggedflag set.- UNFLAGGED¶
Messages without
\Flaggedflag.
Recency Flags
- NEW¶
New unread messages. These are messages that have
\Recentflag but not\Seenflag.- RECENT¶
Messages with
\RECENTflag set.- OLD¶
Messages without
\RECENTflag.- SEEN¶
Messages that have been read. These are messages that have
\Seenflag.- UNSEEN¶
Messages that have been read. These are messages that don’t have
\Seenflag.
Headers
- SUBJECT(‘string’)¶
Message subject contains the given string.
- TO(‘string’)¶
Message’s receivers contain given string.
- FROM(‘string’)¶
Message’s sender contains given string.
- CC(‘string’)¶
Message’s CC field contains given string.
- BCC(‘string’)¶
Message’s BCC field contains given string.
- TEXT(‘string’)¶
Message’s header or body contains given string.
- BODY(‘string’)¶
Message’s body contains given string.
Time related
- BEFORE(‘date-like’)¶
Message’s internal date before given date.
- ON(‘date-like’)¶
Message’s internal date on given date.
- SINCE(‘date-like’)¶
Message’s internal date on or after given date.
- SENTBEFORE(‘date-like’)¶
Message’s sent date before given date.
- SENTON(‘date-like’)¶
Message’s sent date on given date.
- SENTSINCE(‘date-like’)¶
Message’s sent date on or after given date.
Size related
- LARGER(‘n’)¶
Message’s
SIZElarger than specified number of octets.- SMALLER(‘n’)¶
Message’s
SIZEsmaller than specified number of octets.
Logical
- ALL(a, b)¶
Both expressions
aandbis true.- OR(a, b)¶
Either expression
aor expressionbis true.- NOT(a)¶
Expression
ais not true.
Other