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 1417F431FC0 for ; Fri, 2 May 2014 05:11:45 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.7 X-Spam-Level: X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled 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 mVKzComNUIRE for ; Fri, 2 May 2014 05:11:41 -0700 (PDT) Received: from mail-wi0-f181.google.com (mail-wi0-f181.google.com [209.85.212.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 41FC9431FB6 for ; Fri, 2 May 2014 05:11:41 -0700 (PDT) Received: by mail-wi0-f181.google.com with SMTP id f8so2215575wiw.14 for ; Fri, 02 May 2014 05:11:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:to:subject:in-reply-to:references:user-agent :from:date:message-id:mime-version:content-type; bh=0j8pMLWf1sz6gnx/r84X+KrxFrcvMCAGXrmafKDGmwM=; b=Ioxl8UN5BbdQ3lPWx4EyLSMabo/eHfVkhzPYyuGod7y/9ZW74uiAYFg159r2TnfecZ oZj07ulIckVjd7d3G+BHdZkNH/FVIyV653RkIVPVNqIJ+g+31JOluZ42IqhKg7W+I4EJ B62VtFhD6beCLMGhUbdbXM/innD/Y+cf/0gS3Tixv01G+nui0hb41Wuelen1YMktIDHV 72VbdsbxLETaIbcSzCVZ2OLg6FW0JFv/qIl1ceiF/bmH86Ge7ojEP1k2hMoLZc5LudAR VYD5uC/zZ3jSNcoMqw1iNw+3yB8itHQmfQlsRW/uaLr/5dzX40QXNNUDRyf4+L0DUrTE Cojw== X-Gm-Message-State: ALoCoQmT+KVvq4nmmS4ZESRp2D7Pcc8g/R0gVABAwwozdJv6kML1S/GZJdrdyRTmuNrsdZ9j52WS X-Received: by 10.180.91.1 with SMTP id ca1mr2718922wib.32.1399032697790; Fri, 02 May 2014 05:11:37 -0700 (PDT) Received: from localhost ([2a01:348:1a2:1:a288:b4ff:fe8a:77d8]) by mx.google.com with ESMTPSA id cw2sm1863274wjb.39.2014.05.02.05.11.36 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 02 May 2014 05:11:36 -0700 (PDT) To: notmuch@notmuchmail.org Subject: [PATCH v2 0/5] Add support for specifying tags during "notmuch new" In-Reply-To: <1399018555-1994-1-git-send-email-dme@dme.org> References: <1399018555-1994-1-git-send-email-dme@dme.org> User-Agent: Notmuch/0.18~rc0 (http://notmuchmail.org) Emacs/24.3.1 (x86_64-pc-linux-gnu) From: David Edmondson Date: Fri, 02 May 2014 13:11:30 +0100 Message-ID: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" 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, 02 May 2014 12:11:45 -0000 --=-=-= Content-Type: text/plain v1: This patch set allows a user to specify a list of tags to be added/removed to messages discovered during "notmuch new". Two use-cases are envisaged: 1) A chunk of messages was just dumped into the configured directory by hand, and the user doesn't want the 'inbox' tag applied to them. Run 'notmuch new -inbox'. 2) A periodic mail processing script wants to add new messages to the database, then process those newly added messages to add convenience tags, etc. without worrying about the user or other instances of the script manipulating tags at the same time. Use this approach: KEY=$RANDOM notmuch new +$KEY notmuch tag +notmuch tag:$KEY and to:notmuch@notmuchmail.org notmuch tag +gnus tag:$KEY and to:ding@gnus.org ... notmuch tag -$KEY tag:$KEY v2: The first version synced tags to flags rather than the other way around. Thanks to Mark for complaining at me. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iKYEARECAGYFAlNji3NfFIAAAAAALgAoaXNzdWVyLWZwckBub3RhdGlvbnMub3Bl bnBncC5maWZ0aGhvcnNlbWFuLm5ldDc1M0Y5NDJDMEExNjc3MDE4OURGMUYyMDY5 RUNEMEFCRjA0OTY1MTYACgkQaezQq/BJZRZwDACeKN5Eay7Sou7z44wJbdYLUv/m mr8An1wmoA6hFAEeYqtg/yp+Am0VwHm7 =SzL2 -----END PGP SIGNATURE----- --=-=-=--