]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
man: Added doveadm move.
authorPascal Volk <user@localhost.localdomain.org>
Sun, 25 Sep 2011 22:32:04 +0000 (22:32 +0000)
committerPascal Volk <user@localhost.localdomain.org>
Sun, 25 Sep 2011 22:32:04 +0000 (22:32 +0000)
.hgignore
doc/man/Makefile.am
doc/man/doveadm-move.1.in [new file with mode: 0644]
doc/man/doveadm.1.in

index 704ac24c4d1109bf1f6455732086f1e174669dab..77706904f53fa1a3272ac066979fc55a9cfc64b9 100644 (file)
--- a/.hgignore
+++ b/.hgignore
@@ -99,5 +99,5 @@ src/plugins/quota/rquota.h
 
 syntax: regexp
 src/.*/test-[^\.]*$
-doc/man/doveadm-(altmove|auth|director|dump|expunge|fetch|import|index|force-resync|help|kick|log|mailbox|penalty|purge|pw|quota|search|user|who)\.1$
+doc/man/doveadm-(altmove|auth|director|dump|expunge|fetch|import|index|force-resync|help|kick|log|mailbox|move|penalty|purge|pw|quota|search|user|who)\.1$
 doc/man/(doveadm|doveconf|dovecot-lda|dovecot|dsync)\.1$
index 02143b3603bd9f47d20630c4ede6abddce5ed367..202275a3c971a04e5ae0e037c2b71ca8d0b1862f 100644 (file)
@@ -24,6 +24,7 @@ nodist_man1_MANS = \
        doveadm-kick.1 \
        doveadm-log.1 \
        doveadm-mailbox.1 \
+       doveadm-move.1 \
        doveadm-penalty.1 \
        doveadm-purge.1 \
        doveadm-pw.1 \
@@ -59,6 +60,7 @@ EXTRA_DIST = \
        doveadm-kick.1.in \
        doveadm-log.1.in \
        doveadm-mailbox.1.in \
+       doveadm-move.1.in \
        doveadm-penalty.1.in \
        doveadm-purge.1.in \
        doveadm-pw.1.in \
@@ -131,6 +133,10 @@ doveadm-mailbox.1: $(srcdir)/doveadm-mailbox.1.in $(man_includefiles) Makefile
        $(SHELL) $(srcdir)/sed.sh $(srcdir) $(rundir) $(pkgsysconfdir) \
                < $(srcdir)/doveadm-mailbox.1.in > doveadm-mailbox.1
 
+doveadm-move.1: $(srcdir)/doveadm-move.1.in $(man_includefiles) Makefile
+       $(SHELL) $(srcdir)/sed.sh $(srcdir) $(rundir) $(pkgsysconfdir) \
+               < $(srcdir)/doveadm-move.1.in > doveadm-move.1
+
 doveadm-penalty.1: $(srcdir)/doveadm-penalty.1.in $(man_includefiles) Makefile
        $(SHELL) $(srcdir)/sed.sh $(srcdir) $(rundir) $(pkgsysconfdir) \
                < $(srcdir)/doveadm-penalty.1.in > doveadm-penalty.1
diff --git a/doc/man/doveadm-move.1.in b/doc/man/doveadm-move.1.in
new file mode 100644 (file)
index 0000000..f38b85c
--- /dev/null
@@ -0,0 +1,88 @@
+.\" Copyright (c) 2011 Dovecot authors, see the included COPYING file
+.TH DOVEADM\-MOVE 1 "2011-09-25" "Dovecot v2.0" "Dovecot"
+.SH NAME
+doveadm\-move \- Move messages matching the given search query into another
+mailbox
+.\"------------------------------------------------------------------------
+.SH SYNOPSIS
+.BR doveadm " [" \-Dv "] " move " [" \-S
+.IR socket_path "] " "destination search_query"
+.br
+.\"-------------------------------------
+.BR doveadm " [" \-Dv "] " move " [" \-S
+.IR socket_path "] "
+.BI \-A " destination search_query"
+.br
+.\"-------------------------------------
+.BR doveadm " [" \-Dv "] " move " [" \-S
+.IR socket_path "] "
+.BI \-u " user destination search_query"
+.\"------------------------------------------------------------------------
+.SH DESCRIPTION
+.B doveadm move
+can be used for moving mails between mailboxes for one or more users.
+The
+.I search_query
+is used to restrict which messages are moved into the
+.I destination
+mailbox.
+.PP
+In the first form,
+.BR doveadm (1)
+will executed the
+.B move
+action with the environment of the logged in system user.
+.PP
+In the second form,
+.BR doveadm (1)
+will iterate over all users, found in the configured
+.IR user_db (s),
+and move each user\(aqs messages, matching the given
+.IR search_query ,
+into the user\(aqs
+.IR destination " mailbox."
+.PP
+In the third form, matching mails will be moved only for given
+.IR user (s).
+.\"------------------------------------------------------------------------
+@INCLUDE:global-options@
+.\" --- command specific options --- "/.
+.PP
+Command specific
+.IR options :
+.\"-------------------------------------
+@INCLUDE:option-A@
+.\"-------------------------------------
+@INCLUDE:option-S-socket@
+.\"-------------------------------------
+@INCLUDE:option-u-user@
+.\"------------------------------------------------------------------------
+.SH ARGUMENTS
+.TP
+.I destination
+The name of the destination mailbox, into which the mails should be moved.
+The
+.I destination
+mailbox must exist, otherwise this command will fail.
+.\"-------------------------------------
+.TP
+.I search_query
+Move messages matching the given search query.
+See
+.BR doveadm\-search\-query (7)
+for details.
+.\"------------------------------------------------------------------------
+.SH EXAMPLE
+Move jane\(aqs messages \- received in September 2011 \- from her INBOX
+into her archive.
+.PP
+.nf
+.B doveadm move \-u jane Archive/2011/09 mailbox INBOX BEFORE \(rs
+.B 2011-10-01 SINCE 01-Sep-2011
+.fi
+.\"------------------------------------------------------------------------
+@INCLUDE:reporting-bugs@
+.\"------------------------------------------------------------------------
+.SH SEE ALSO
+.BR doveadm (1),
+.BR doveadm\-search\-query (7)
\ No newline at end of file
index 62401e428ddc70bf4c49701cec7f844667d7125e..f268dc600450ad4d5dbf54a7fd3f8ed2f81f3821 100644 (file)
@@ -122,6 +122,11 @@ Index messages in a given mailbox.
 Various commands related to handling mailboxes.
 .\"-------------------------------------
 .TP
+.B doveadm move
+.BR doveadm\-move (1)
+Move messages matching the given search query into another mailbox.
+.\"-------------------------------------
+.TP
 .B doveadm purge
 .BR doveadm\-purge (1)
 Remove messages with refcount=0 from mdbox files.