Dear Jiri Noted. Thanks On Fri, Feb 13, 2015 at 11:15 PM, Jiri Bourek <bourek at thinline.cz> wrote:> On 13.2.2015 15:54, Kevin Laurie wrote: > >> Hello, >> I just migrated my emails from gmail using getmail. >> In the process I got some emails that have been doubled or tripled >> How do I run the doveadm command to delete copies of same emails? >> >> I tried running the following:- >> doveadm deduplicate -u user at domain.net inbox >> >> but I get error:- >> doveadm(root): Fatal: Unknown argument INBOX >> >> Could someone share some way to automatically remove duplicated messages? >> >> Thanks >> Kevin >> >> > See documentation - man doveadm-deduplicate and man doveadm-search-query > should be enough. I'm guessing you're missing "MAILBOX" in the command. > > Also when using deduplicate on my servers, it usually doesn't remove every > duplicate on first run and needs to be executed repeatedly. Not sure if > it's Debian version's (2.2.13) bug or an upstream one. YMMV >
Dear Jiri, I tried the following to try to get the inbox deduplicated. My inbox is quite large and urgently need to remove the duplicated messages. Is there an easy way to do this? Sorry for being so presistant but I need help. The command I tried:- doveadm deduplicate -u user at domain.net mailbox inbox On Fri, Feb 13, 2015 at 11:40 PM, Kevin Laurie <superinterstellar at gmail.com> wrote:> Dear Jiri > Noted. > Thanks > > > On Fri, Feb 13, 2015 at 11:15 PM, Jiri Bourek <bourek at thinline.cz> wrote: > >> On 13.2.2015 15:54, Kevin Laurie wrote: >> >>> Hello, >>> I just migrated my emails from gmail using getmail. >>> In the process I got some emails that have been doubled or tripled >>> How do I run the doveadm command to delete copies of same emails? >>> >>> I tried running the following:- >>> doveadm deduplicate -u user at domain.net inbox >>> >>> but I get error:- >>> doveadm(root): Fatal: Unknown argument INBOX >>> >>> Could someone share some way to automatically remove duplicated messages? >>> >>> Thanks >>> Kevin >>> >>> >> See documentation - man doveadm-deduplicate and man doveadm-search-query >> should be enough. I'm guessing you're missing "MAILBOX" in the command. >> >> Also when using deduplicate on my servers, it usually doesn't remove >> every duplicate on first run and needs to be executed repeatedly. Not sure >> if it's Debian version's (2.2.13) bug or an upstream one. YMMV >> > >
On 13.2.2015 16:59, Kevin Laurie wrote:> Dear Jiri, > > I tried the following to try to get the inbox deduplicated. My inbox is > quite large and urgently need to remove the duplicated messages. > Is there an easy way to do this? > Sorry for being so presistant but I need help. > > The command I tried:- > > doveadm deduplicate -u user at domain.net mailbox inbox >I'd try this (in shell): doveadm search -u user at domain.net mailbox inbox | wc -l Doveadm will print mailbox-guid and uid pair for every message in inbox, one per line, pipe it into "wc -l", which will count the lines and output a number - that's the count of messages in INBOX. Then try doveadm deduplicate and after that the search command above again. If the count changed, deduplicate is working - you may only need to run it multiple times. If the count doesn't change, dovecot is unable to recognize duplicates in your mailbox and you need to find another solution. Maybe check out the "-m" option in man doveadm-deduplicate