unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Tomi Ollila <tomi.ollila@iki.fi>
To: Vladimir Marek <Vladimir.Marek@oracle.com>
Cc: notmuch@notmuchmail.org
Subject: Re: Deduplication ?
Date: Sat, 07 Jun 2014 16:37:41 +0300	[thread overview]
Message-ID: <m2fvjgn8m2.fsf@guru.guru-group.fi> (raw)
In-Reply-To: <20140606104018.GJ2154@virt.cz.oracle.com>

On Fri, Jun 06 2014, Vladimir Marek <Vladimir.Marek@oracle.com> wrote:

> Hi,
>

 // stuff deleted //

>
> I'm attaching my perl script if anyone is interested. It's in no way
> complete solution. It is supposed to be used as
>
> notmuch search --output=files --duplicate=2 '*' > dups
> ./dedup # It opens the file 'dups'
>
> The attached version does not remove anyting (the 'unlink' command is
> commented out).
>
>
> Interestingly this does not work (it seems to return all messages):
> notmuch search --output=messages --duplicate=2 '*'
>
> Also I have found that if I run 'notmuch search' and 'notmuch new' at
> the same time, the notmuch search crashes sometimes. That's why I don't
> use
>
> notmuch search ... | ./dedup
>
> Use with care :)

To me, any perl code that lacks use strict; use warning; looks like a BIG
footgun ;/

>
> Thank you for your help
> -- 
> 	Vlad


Tomi

> #!/usr/bin/perl
>
> use Data::Dumper;
> use List::Util;
>
>
> @TO_IGNORE= (
>

      reply	other threads:[~2014-06-07 13:38 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-02 12:32 Deduplication ? Vladimir Marek
2014-06-02 13:43 ` David Edmondson
2014-06-02 13:54   ` Vladimir Marek
2014-06-02 14:10     ` Mark Walters
2014-06-02 14:15       ` Mark Walters
2014-06-02 13:51 ` Mark Walters
2014-06-02 14:17   ` Tomi Ollila
2014-06-02 14:26     ` Mark Walters
2014-06-02 17:06       ` Jani Nikula
2014-06-02 17:25         ` David Edmondson
2014-06-02 18:29           ` Jani Nikula
2014-06-06 10:40           ` Vladimir Marek
2014-06-07 13:37             ` Tomi Ollila [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2fvjgn8m2.fsf@guru.guru-group.fi \
    --to=tomi.ollila@iki.fi \
    --cc=Vladimir.Marek@oracle.com \
    --cc=notmuch@notmuchmail.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).