1
.\" Copyright (c) 2013 Dovecot authors, see the included COPYING file
2
.TH DOVEADM\-DEDUPLICATE 1 "2013-08-03" "Dovecot v2.2" "Dovecot"
4
doveadm\-deduplicate \- expunge duplicate messages
5
.\"------------------------------------------------------------------------
7
.BR doveadm " [" \-Dv "] " deduplicate " [" \-u
10
.IR socket_path "] ["\c
13
.\"------------------------------------------------------------------------
15
This command is used to expunge duplicated messages in mailboxes.
16
.B doveadm deduplicate
17
is mainly useful to revert some (more or less) accidental duplication of
19
.BR "doveadm copy" " or " "doveadm import" .
21
will delete the newest duplicated messages from the mailbox and keep the
24
Deduplication across multiple mailboxes is not supported.
25
.\"------------------------------------------------------------------------
26
@INCLUDE:global-options@
27
.\"-------------------------------------
31
.\"-------------------------------------
33
.\"-------------------------------------
34
@INCLUDE:option-S-socket@
35
.\"-------------------------------------
42
will deduplicate by Message\-Id header.
43
By default deduplication will be done by message GUIDs.
44
.\"-------------------------------------
45
@INCLUDE:option-u-user@
46
.\"------------------------------------------------------------------------
50
expunge duplicates found from messages matching the given search query.
51
Typically a search query like \(aq\fBmailbox\fP \fImailbox_name\fP
52
\fBOR mailbox\fP \fIother_box\fP\(aq will be sufficient.
54
.BR doveadm\-search\-query (7)
56
.\"------------------------------------------------------------------------
58
This example shows how to list and expunge duplicate messages from a
62
.B doveadm \-f table fetch \-u jane \(aqguid uid\(aq mailbox a_Box | sort
64
8aad0f0a30169f4bea620000ca356bad 18751
65
8aad0f0a30169f4bea620000ca356bad 18756
66
923e301ab9219b4b4f440000ca356bad 18748
67
923e301ab9219b4b4f440000ca356bad 18753
69
.B doveadm deduplicate \-u jane mailbox a_Box
70
.B doveadm \-f table fetch \-u jane \(aqguid uid\(aq mailbox a_Box | sort
72
8aad0f0a30169f4bea620000ca356bad 18751
73
923e301ab9219b4b4f440000ca356bad 18748
74
a7999e1530739c4bd26d0000ca356bad 18749
77
.\"------------------------------------------------------------------------
78
@INCLUDE:reporting-bugs@
79
.\"------------------------------------------------------------------------
82
.BR doveadm\-copy (1),
83
.BR doveadm\-fetch (1),
84
.BR doveadm\-import (1),
85
.BR doveadm\-search\-query (7)
b'\\ No newline at end of file'