Search K
Appearance
Appearance
doveadm [GLOBAL OPTIONS] flags [-S socket_path] -A command flags search_query
doveadm [GLOBAL OPTIONS] flags [-S socket_path] -F file command flags search_query
doveadm [GLOBAL OPTIONS] flags [-S socket_path] --no-userdb-lookup command flags search_query
doveadm [GLOBAL OPTIONS] flags [-S socket_path] -u user command flags search_query
This command is used to manipulate flags of messages.
Message flags as described in RFC 3501, section 2.3.2 (Flags Message Attribute): \Answered, \Deleted, \Draft, \Flagged, \Recent and \Seen. And the IMAP keywords
One or multiple flags and/or keywords can be specified.
Manipulate the flags of messages matching the given search query. See doveadm-search-query(7)
for details.
doveadm [GLOBAL OPTIONS] flags add [-u user | -A | -F file | --no-userdb-lookup] [-S socket_path] flags search_query
This command is used to extend the current set of flags with the given flags.
doveadm [GLOBAL OPTIONS] flags remove [-u user | -A | -F file | --no-userdb-lookup] [-S socket_path] flags search_query
In order to remove the given flags from the current set of flags, use this command.
doveadm [GLOBAL OPTIONS] flags replace [-u user | -A | -F file | --no-userdb-lookup] [-S socket_path] flags search_query
This command is used to replace ALL current flags with the given flags.
List and manipulate the message flags of the message with uid 81563:
$ doveadm fetch -u bob 'uid flags' mailbox dovecot uid 81563
uid: 81563
flags: \Answered \Seen NonJunk
$ doveadm flags remove -u bob NonJunk mailbox dovecot uid 81563
$ doveadm flags add -u bob '\Flagged $Forwarded' mailbox dovecot uid 81563