Hi,
doveadm expunge -u uid mailbox folder uid 123
Sami
> On 5 Dec 2019, at 12.18, soumitri--- via dovecot <dovecot at
dovecot.org> wrote:
>
> Hi,
>
> Do we have expunge command by UID. I have some duplicate messages (same
Message-ID but different UID) to be deleted.
>
> doveadm search gives me folder GUID and file UID, I want to use this
specific information to delete/expunge.
>
> E.g. Following command deletes all duplicates, but I want to keep just one.
>
> doveadm expunge -u user1 mailbox INBOX HEADER Message-ID
'5de82b2d.6VWfTzsd/fEAxfV7%cytx at iitk.ac.in'
>
> The following does not help
>
> doveadm deduplicate -u user1 mailbox INBOX
>
> --
> Sincerely,
> Soumitri Mishra
>