doveadm-import.1.in revision 44c6dbf0a48ebf3d18aec72849bd114b54f4b0aa
Copyright (c) 2010 Dovecot authors, see the included COPYING file
DOVEADM-IMPORT 1 "2010-11-25" "Dovecot v2.0" "Dovecot"
NAME
doveadm-import - Import messages matching given search query ------------------------------------------------------------------------
SYNOPSIS
doveadm " [" -Dv "] " import " [" -S socket_path "] " "source_location dest_parent search_query"

-------------------------------------
doveadm " [" -Dv "] " import " [" -S socket_path "] " -A " source_location dest_parent search_query"

-------------------------------------
doveadm " [" -Dv "] " import " [" -S socket_path "] " -u " user source_location dest_parent search_query" ------------------------------------------------------------------------

DESCRIPTION
This command can be used to import mails from another mail storage specified by source_location to one or more user\(aqs mailboxes. All the mailboxes are imported under the given dest_parent mailbox, or to root level if dest_parent is empty (\(dq\(dq). The search_query can be used to restrict which mailboxes or messages are imported. In the first form, doveadm (1) will executed the import action with the environment of the logged in system user.

In the second form, the mails will be imported for all users.

In the third form, the mails will be imported only for given user (s). ------------------------------------------------------------------------
@INCLUDE:global-options@ --- command specific options --- "/.

Command specific options : -------------------------------------
@INCLUDE:option-A@ -------------------------------------
@INCLUDE:option-S-socket@ -------------------------------------
@INCLUDE:option-u-user@ ------------------------------------------------------------------------

ARGUMENTS

search_query Copy messages matching this search query. See doveadm-search-query (7) for details. ------------------------------------------------------------------------

EXAMPLE
This example imports all mails from a backup under a backup-20101026 mailbox:

 doveadm import -u jane.doe@example.org \(rs  mdbox:/backup/20101026/jane.doe/mdbox backup-20101026 all 

Another example that imports only messages from foo@example.org in the backup mdbox\(aqs INBOX to jane\(aqs INBOX:

 doveadm import -u jane.doe@example.org \(rs  mdbox:~/mdbox-backup \(dq\(dq mailbox INBOX from foo@example.org 
------------------------------------------------------------------------
@INCLUDE:reporting-bugs@ ------------------------------------------------------------------------
SEE ALSO
doveadm (1), doveadm-fetch (1), doveadm-search (1), doveadm-search-query (7)