1 Return-Path: <gmn-notmuch@m.gmane.org>
\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 AA54D431FB6
\r
6 for <notmuch@notmuchmail.org>; Mon, 10 Dec 2012 06:27:21 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=1.202 tagged_above=-999 required=5
\r
12 tests=[DKIM_ADSP_CUSTOM_MED=0.001, FREEMAIL_FROM=0.001,
\r
13 NML_ADSP_CUSTOM_MED=1.2, RCVD_IN_DNSWL_NONE=-0.0001]
\r
15 Received: from olra.theworths.org ([127.0.0.1])
\r
16 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
17 with ESMTP id g3vr1kz25lOx for <notmuch@notmuchmail.org>;
\r
18 Mon, 10 Dec 2012 06:27:20 -0800 (PST)
\r
19 Received: from plane.gmane.org (plane.gmane.org [80.91.229.3])
\r
20 (using TLSv1 with cipher AES256-SHA (256/256 bits))
\r
21 (No client certificate requested)
\r
22 by olra.theworths.org (Postfix) with ESMTPS id 5EB38431FAF
\r
23 for <notmuch@notmuchmail.org>; Mon, 10 Dec 2012 06:27:20 -0800 (PST)
\r
24 Received: from list by plane.gmane.org with local (Exim 4.69)
\r
25 (envelope-from <gmn-notmuch@m.gmane.org>) id 1Ti4KP-00049U-IW
\r
26 for notmuch@notmuchmail.org; Mon, 10 Dec 2012 15:27:29 +0100
\r
27 Received: from arn78-1-88-186-171-7.fbx.proxad.net ([88.186.171.7])
\r
28 by main.gmane.org with esmtp (Gmexim 0.1 (Debian))
\r
30 for <notmuch@notmuchmail.org>; Mon, 10 Dec 2012 15:27:29 +0100
\r
31 Received: from R.M.Krug by arn78-1-88-186-171-7.fbx.proxad.net with local
\r
32 (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00
\r
33 for <notmuch@notmuchmail.org>; Mon, 10 Dec 2012 15:27:29 +0100
\r
34 X-Injected-Via-Gmane: http://gmane.org/
\r
35 To: notmuch@notmuchmail.org
\r
36 From: Rainer M Krug <R.M.Krug@gmail.com>
\r
37 Subject: Re: OT: Sorting emails in maildir?
\r
38 Date: Mon, 10 Dec 2012 15:27:04 +0100
\r
40 Message-ID: <50C5F138.9080108@gmail.com>
\r
41 References: <ka4h4m$guu$1@ger.gmane.org>
\r
42 <20121210113922.GE3507@sid.nuvreauspam>
\r
43 <50C5CE45.5060701@gmail.com>
\r
44 <20121210134022.GB6462@sid.nuvreauspam>
\r
46 Content-Type: text/plain; charset=ISO-8859-1
\r
47 Content-Transfer-Encoding: 7bit
\r
48 X-Complaints-To: usenet@ger.gmane.org
\r
49 X-Gmane-NNTP-Posting-Host: arn78-1-88-186-171-7.fbx.proxad.net
\r
50 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/17.0 Thunderbird/17.0
\r
51 In-Reply-To: <20121210134022.GB6462@sid.nuvreauspam>
\r
52 X-Enigmail-Version: 1.5a1pre
\r
53 Cc: public-notmuch-gxuj+Tv9EO5zyzON3hdc1g@plane.gmane.org
\r
54 X-BeenThere: notmuch@notmuchmail.org
\r
55 X-Mailman-Version: 2.1.13
\r
57 List-Id: "Use and development of the notmuch mail system."
\r
58 <notmuch.notmuchmail.org>
\r
59 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
60 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
61 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
62 List-Post: <mailto:notmuch@notmuchmail.org>
\r
63 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
64 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
65 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
66 X-List-Received-Date: Mon, 10 Dec 2012 14:27:22 -0000
\r
68 -----BEGIN PGP SIGNED MESSAGE-----
\r
71 On 10/12/12 14:40, Andrei POPESCU wrote:
\r
72 > On Lu, 10 dec 12, 12:57:57, Rainer M Krug wrote:
\r
73 >> On 10/12/12 12:39, Andrei POPESCU wrote:
\r
74 >>> On Lu, 10 dec 12, 12:30:32, Rainer M Krug wrote:
\r
77 >>>> This is slightly offtopic, but I would like to move all emails in a Maildir folder into
\r
78 >>>> an Archive folder. What is the easiest way of doing this? I assume I ave to do this
\r
79 >>>> outside notmuch, but is there an easy way? I have 250 000 emails on my gmail account, and
\r
80 >>>> this is slowing many things down.
\r
82 >>>> Any suggestions?
\r
88 >> notmuch search --output=files $(date +%s -d 2010-01-01)..$(date +%s -d 2010-12-31)
\r
90 >> and how I can create a maildir (http://plasmasturm.org/log/81/)
\r
92 >> So now I have to pipe the result from the notmuch command above to mv and move it to
\r
93 >> $MAILDIR/ARCHIVE.2010/cur
\r
95 >> Is this correct? How can I do this?
\r
97 > Above you wrote "all emails in a Maildir", which is why I suggested 'mv'. For a more complex
\r
98 > operation I would use my usual mail client (mutt in my case).
\r
100 Sorry - I have forgotten the part "from one year". But I found a solution:
\r
103 notmuch search [...] | xargs -0 -I {} mv {} ~/rkrug/Maildir/Archive/2009/cur
\r
105 $ notmuch search --output=files $(date +%s -d 2009-01-01)..$(date +%s -d 2009-31-12) | xargs -0 -I
\r
106 {} mv {} ~/rkrug/Maildir/Archive/2009/cur
\r
108 to move all emails from 2009 into the maildir Maildir/Archive/2009
\r
110 I though about using mutt or , but I am using usually thunderbird and notmuch for searching and
\r
111 occasionally answering emails and archiving. So mutt is not that straight forward to me.
\r
121 > Kind regards, Andrei
\r
126 -----BEGIN PGP SIGNATURE-----
\r
127 Version: GnuPG v1.4.11 (GNU/Linux)
\r
128 Comment: Using GnuPG with Mozilla - http://www.enigmail.net/
\r
130 iEYEARECAAYFAlDF8TcACgkQoYgNqgF2egqbqwCeMggEjTBTn9eiqkiN9EI77EH5
\r
131 3LsAnj2GWjrri2WFl6SkBXIGCqeJGTbC
\r
133 -----END PGP SIGNATURE-----
\r