logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

doveadm-search-query - Overview of search queries for doveadm mailbox commands

Date Specification

doveadm(1) supports a few additional dd-mon-yyyy Default IMAP4rev1 date format. Date components: day : the day of month: 1-31. month : the abbreviated month name: Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, or Dec. year : four digits of year, e.g. 2007. For example the "13th of April 2007" will be represented as 13-Apr-2007. dd-mon-yyyyhh:mm:ss[+-]zzzz Default IMAP4rev1 date-time format. See dd-mon-yyyy above for the date format. Time format components: hh : the hour mm : the minute ss : the second [+-]zzzz : the timezone as hhmm, e.g. +0530, -0700interval Combination of a positive integer number and a timeunit. Available timeunits are: weeks : abbreviated: wdays : abbreviated: dhours : abbreviated: hmins : abbreviated: msecs : abbreviated: s To match messages from last week, you may specify for example: since1w, since1weeks or since7days. Unixtimestamp A 10 digit Unix timestamp, seconds since the 1st of January 1970, 00:00:00 UTC. For example the "13th of April 2007" will be represented as 1176418800. YYYY-MM-DD Extended ISO-8601 calendar date format. For example the "13th of April 2007" will be represented as 2007-04-13.

Description

Several doveadm(1) commands use a Each search_query consists at least of one SEARCHKEY. Most of the SEARCHKEYS require an argument. All SEARCHKEYS are case-insensitive. The shortest valid search_query is ALL. For example: doveadm search ALL Multiple search query expressions will be combined with the AND operator by default. To find all messages that are new and greater than 50 kilobyte, one can use: doveadm search NEW LARGER 50k OR-ed SEARCHKEYS have to be written in parenthesis, when mixing ANDs and ORs. Shells commonly require escaping for parentheses. To find messages that were saved on the "13th of April 2007" AND have the \Seen and/or \Flagged flag set, one can use for example: doveadm search SAVEDON 2007-04-13 \( SEEN OR FLAGGED \) It's also possible to specify the mailbox, in which should be searched. Use either the keyword mailbox and the name of the mailbox or the keyword mailbox-guid and the mailbox's globally unique identifier in the search_query. To find all messages in the mailbox with the GUID "44f68b13ce97044b837f000035ca9452" use: doveadm search mailbox-guid 44f68b13ce97044b837f000035ca9452 ALL To list all deleted messages in the "Trash" folder use: doveadm search mailbox Trash DELETED

Name

doveadm-search-query - Overview of search queries for doveadm mailbox commands

Reporting Bugs

Report bugs, including doveconf-n output, to the Dovecot Mailing List dovecot@dovecot.org. Information about reporting bugs is available at: https://dovecot.org/bugreport.html

See Also

doveadm(1) 78ffb79 March 2025 DOVEADM-SEARCH-QUERY(7)

Size

doveadm(1) provides also an additional octets The message size in octets, as specified in the IMAP4rev1 specification. size The message size in B (byte), k (kilobyte), M (megabyte), G (gigabyte) or T (terabyte). To match messages, bigger than 1 megabyte, you may specify for example: larger1M or larger1024k.

See Also