Search K
Appearance
Appearance
doveadm [GLOBAL OPTIONS] altmove [-r] [-S socket_path] -A search_query
doveadm [GLOBAL OPTIONS] altmove [-r] [-S socket_path] -F file search_query
doveadm [GLOBAL OPTIONS] altmove [-r] [-S socket_path] --no-userdb-lookup search_query
doveadm [GLOBAL OPTIONS] altmove [-r] [-S socket_path] -u user search_query
This command can be used with sdbox or mdbox storage to move mails to alternative storage path when :ALT=<path> is specified for the mail location.
In the first form, doveadm(1)
will execute the altmove for all users.
In the second form, the command will be performed for all users listed in the given file.
In the third form, the command will be performed for the user contained in the USER environment variable.
In the last form, only matching mails of the given user\ (s) will be moved to the alternative storage.
doveadm-search-query(7)
for details.This example moves seen mails older than one week to alternative storage under /nfsmount:
mail_location = mdbox:~/mdbox:ALT=/nfsmount/%h/mdbox
$ doveadm altmove -u johnd@example.com seen savedbefore 1w<