1 Return-Path: <Sebastian@SSpaeth.de>
\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 683114196F0
\r
6 for <notmuch@notmuchmail.org>; Fri, 16 Apr 2010 01:45:40 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-0.001 tagged_above=-999 required=5
\r
12 tests=[BAYES_20=-0.001] autolearn=ham
\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 PzSyoV9w9Yqm for <notmuch@notmuchmail.org>;
\r
16 Fri, 16 Apr 2010 01:45:39 -0700 (PDT)
\r
17 Received: from homiemail-a11.g.dreamhost.com (caiajhbdcbbj.dreamhost.com
\r
19 by olra.theworths.org (Postfix) with ESMTP id A37DC431FC1
\r
20 for <notmuch@notmuchmail.org>; Fri, 16 Apr 2010 01:45:39 -0700 (PDT)
\r
21 Received: from sspaeth.de (unknown [195.190.188.219])
\r
22 by homiemail-a11.g.dreamhost.com (Postfix) with ESMTPA id 8B34F194081;
\r
23 Fri, 16 Apr 2010 01:43:46 -0700 (PDT)
\r
24 Received: by sspaeth.de (sSMTP sendmail emulation);
\r
25 Fri, 16 Apr 2010 10:43:40 +0200
\r
26 From: "Sebastian Spaeth" <Sebastian@SSpaeth.de>
\r
27 To: Dirk Hohndel <hohndel@infradead.org>, notmuch@notmuchmail.org
\r
28 Subject: notmuchsync --move (was: add a number of new feature ideas to TODO
\r
30 In-Reply-To: <m3d3y07y43.fsf@x200.gr8dns.org>
\r
31 References: <m3d3y07y43.fsf@x200.gr8dns.org>
\r
32 Date: Fri, 16 Apr 2010 10:43:40 +0200
\r
33 Message-ID: <878w8niy83.fsf@SSpaeth.de>
\r
34 User-Agent: notmuch 0.1-163-g5fa1043 (Emacs 23.1.1/x86_64-pc-linux-gnu)
\r
36 Content-Type: text/plain; charset=us-ascii
\r
37 X-BeenThere: notmuch@notmuchmail.org
\r
38 X-Mailman-Version: 2.1.13
\r
40 List-Id: "Use and development of the notmuch mail system."
\r
41 <notmuch.notmuchmail.org>
\r
42 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
43 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
44 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
45 List-Post: <mailto:notmuch@notmuchmail.org>
\r
46 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
47 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
48 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
49 X-List-Received-Date: Fri, 16 Apr 2010 08:45:40 -0000
\r
51 On 2010-04-16, Dirk Hohndel wrote:
\r
54 > +(not sure this is the best spot to collect requests like this)
\r
58 > +Add feature to move files in the maildir hierarchy
\r
60 > + notmuchsync --move "searchstring" "targetfolder"
\r
61 > + Where searchstring is any valid notmuch search
\r
64 You can remove that bit from the patch, it is implemented now :-)
\r
66 notmuchsync --move "querystring" "targetfolder"
\r
67 (use with --dry-run and -d to preview changes)
\r
69 once folder: search is implemented you can e.g. simply do:
\r
71 notmuchsync --move "not tag:inbox and folder:inbox"
\r
72 /home/spaetz/mail/archive/cur
\r
74 and make your IMAP web clients (or iphones) happy.
\r
76 This works right now already:
\r
78 notmuchsync --move "not tag:inbox" /home/spaetz/mail/archive/cur
\r
80 but is of course slower (still ok) as it has to traverse through most
\r