RE: [Spam-verdenking][english 100%] Re: another bug fix release: 0.15.2, in progress.
[notmuch-archives.git] / 18 / 4f277f9de90c50a8887a63c00a00a4e2a6b4ed
1 Return-Path: <tomi.ollila@iki.fi>\r
2 X-Original-To: notmuch@notmuchmail.org\r
3 Delivered-To: notmuch@notmuchmail.org\r
4 Received: from localhost (localhost [127.0.0.1])\r
5         by olra.theworths.org (Postfix) with ESMTP id 2DCC9431FAF\r
6         for <notmuch@notmuchmail.org>; Thu, 12 Apr 2012 11:49:40 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: 0\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
12         autolearn=disabled\r
13 Received: from olra.theworths.org ([127.0.0.1])\r
14         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
15         with ESMTP id At4nvCnNKnt0 for <notmuch@notmuchmail.org>;\r
16         Thu, 12 Apr 2012 11:49:39 -0700 (PDT)\r
17 Received: from guru.guru-group.fi (guru-group.fi [87.108.86.66])\r
18         by olra.theworths.org (Postfix) with ESMTP id 37C82431FAE\r
19         for <notmuch@notmuchmail.org>; Thu, 12 Apr 2012 11:49:39 -0700 (PDT)\r
20 Received: by guru.guru-group.fi (Postfix, from userid 501)\r
21         id 53C3268055; Thu, 12 Apr 2012 21:49:35 +0300 (EEST)\r
22 From: Tomi Ollila <tomi.ollila@iki.fi>\r
23 To: Taylor Carpenter <taylor@codecafe.com>\r
24 Subject: Re: [PATCH] notmuch-mutt: replace gnu sed and xargs with perl\r
25 In-Reply-To:\r
26  <CALeDOt960xJSmXuSgdG=ir4oPoQjF8fKBYRcTqFr3JQ0AJkO3Q@mail.gmail.com>\r
27 References: <20120412002953.GA27056@codecafe.com>\r
28         <m2r4vtjulx.fsf@guru.guru-group.fi>\r
29         <CALeDOt960xJSmXuSgdG=ir4oPoQjF8fKBYRcTqFr3JQ0AJkO3Q@mail.gmail.com>\r
30 User-Agent: Notmuch/0.12+104~gf9ad237 (http://notmuchmail.org) Emacs/23.3.1\r
31         (x86_64-unknown-linux-gnu)\r
32 X-Face: HhBM'cA~<r"^Xv\KRN0P{vn'Y"Kd;zg_y3S[4)KSN~s?O\"QPoL\r
33         $[Xv_BD:i/F$WiEWax}R(MPS`^UaptOGD`*/=@\1lKoVa9tnrg0TW?"r7aRtgk[F\r
34         !)g;OY^,BjTbr)Np:%c_o'jj,Z\r
35 Date: Thu, 12 Apr 2012 21:49:35 +0300\r
36 Message-ID: <m2zkagdbuo.fsf@guru.guru-group.fi>\r
37 MIME-Version: 1.0\r
38 Content-Type: text/plain; charset=us-ascii\r
39 Cc: notmuch@notmuchmail.org\r
40 X-BeenThere: notmuch@notmuchmail.org\r
41 X-Mailman-Version: 2.1.13\r
42 Precedence: list\r
43 List-Id: "Use and development of the notmuch mail system."\r
44         <notmuch.notmuchmail.org>\r
45 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
46         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
47 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
48 List-Post: <mailto:notmuch@notmuchmail.org>\r
49 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
50 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
51         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
52 X-List-Received-Date: Thu, 12 Apr 2012 18:49:40 -0000\r
53 \r
54 On Thu, Apr 12 2012, Taylor Carpenter <taylor@codecafe.com> wrote:\r
55 \r
56 > On Thu, Apr 12, 2012 at 02:07, Tomi Ollila <tomi.ollila@iki.fi> wrote:\r
57 >\r
58 >> Btw: what if there are same filenames in different directories that\r
59 >> match. With basename there will be collision.\r
60 >\r
61 > FYI, the current xargs version does not handle collisions either.\r
62 \r
63 True -- so that is not strictly a requirement ;)\r
64 \r
65 >> Alternatives:\r
66 >>\r
67 >> * instead of basename convert '/':s to '_':s\r
68 >> * take md5 or sha1 sum of the filename\r
69 >> * take md5 or sha1 sum of dirname of the filename and concatenate...\r
70 >\r
71 > How about pre-pending some unique text to the colliding file?\r
72 \r
73 Anything goes -- the target filename could also be generated ...\r
74 like this:\r
75 \r
76     my $counter = 0;\r
77     foreach(...) {\r
78         chomp;\r
79         my $target = sprintf("$maildir/cur/%08d", $counter++);\r
80         symlink($_, $target);\r
81     }    \r
82 \r
83 i.e. target filename is just counter value.\r
84 \r
85 > Regards,\r
86 >\r
87 > Taylor\r
88 \r
89 Tomi\r