Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 683114196F0 for ; Fri, 16 Apr 2010 01:45:40 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.001 X-Spam-Level: X-Spam-Status: No, score=-0.001 tagged_above=-999 required=5 tests=[BAYES_20=-0.001] autolearn=ham Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PzSyoV9w9Yqm for ; Fri, 16 Apr 2010 01:45:39 -0700 (PDT) Received: from homiemail-a11.g.dreamhost.com (caiajhbdcbbj.dreamhost.com [208.97.132.119]) by olra.theworths.org (Postfix) with ESMTP id A37DC431FC1 for ; Fri, 16 Apr 2010 01:45:39 -0700 (PDT) Received: from sspaeth.de (unknown [195.190.188.219]) by homiemail-a11.g.dreamhost.com (Postfix) with ESMTPA id 8B34F194081; Fri, 16 Apr 2010 01:43:46 -0700 (PDT) Received: by sspaeth.de (sSMTP sendmail emulation); Fri, 16 Apr 2010 10:43:40 +0200 From: "Sebastian Spaeth" To: Dirk Hohndel , notmuch@notmuchmail.org Subject: notmuchsync --move (was: add a number of new feature ideas to TODO file) In-Reply-To: References: Date: Fri, 16 Apr 2010 10:43:40 +0200 Message-ID: <878w8niy83.fsf@SSpaeth.de> User-Agent: notmuch 0.1-163-g5fa1043 (Emacs 23.1.1/x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Apr 2010 08:45:40 -0000 On 2010-04-16, Dirk Hohndel wrote: > +Thirdparty apps > +--------------- > +(not sure this is the best spot to collect requests like this) > + > +notmuchsync > + > +Add feature to move files in the maildir hierarchy > + > + notmuchsync --move "searchstring" "targetfolder" > + Where searchstring is any valid notmuch search > + You can remove that bit from the patch, it is implemented now :-) notmuchsync --move "querystring" "targetfolder" (use with --dry-run and -d to preview changes) once folder: search is implemented you can e.g. simply do: notmuchsync --move "not tag:inbox and folder:inbox" /home/spaetz/mail/archive/cur and make your IMAP web clients (or iphones) happy. This works right now already: notmuchsync --move "not tag:inbox" /home/spaetz/mail/archive/cur but is of course slower (still ok) as it has to traverse through most of your mails. Sebastian