From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 76BB1431FB6 for ; Mon, 25 Feb 2013 13:53:33 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] 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 QEqz0QHELaqa for ; Mon, 25 Feb 2013 13:53:33 -0800 (PST) Received: from tesseract.cs.unb.ca (tesseract.cs.unb.ca [131.202.240.238]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id EF033431FAF for ; Mon, 25 Feb 2013 13:53:32 -0800 (PST) Received: from convex-new.cs.unb.ca ([131.202.245.35]) by tesseract.cs.unb.ca with esmtpsa (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1UA5zA-000129-Mn; Mon, 25 Feb 2013 17:53:27 -0400 Received: from bremner by convex-new.cs.unb.ca with local (Exim 4.80) (envelope-from ) id 1UA5z3-0007kX-92; Mon, 25 Feb 2013 17:53:17 -0400 From: David Bremner To: Jani Nikula , notmuch@notmuchmail.org Subject: Re: [PATCH 2/4] cli: add --remove-all option to "notmuch tag" In-Reply-To: <87obf8ur0u.fsf@nikula.org> References: <1a2c09adc1c963f1aa209c09143f85dca7634e11.1358876448.git.jani@nikula.org> <87obf8ur0u.fsf@nikula.org> User-Agent: Notmuch/0.14+257~ge43e0af (http://notmuchmail.org) Emacs/24.2.1 (x86_64-pc-linux-gnu) Date: Mon, 25 Feb 2013 17:53:17 -0400 Message-ID: <87a9qs6oxe.fsf@convex-new.cs.unb.ca> MIME-Version: 1.0 Content-Type: text/plain X-Spam_bar: - 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: Mon, 25 Feb 2013 21:53:33 -0000 Jani Nikula writes: >> >> $ notmuch tag $(notmuch search --output=tags '*' | sed 's/^/-/') \ >> id:foo@example.com >> $ notmuch tag $(notmuch search --output=tags '*' | sed 's/^/-/') \ >> +foo +bar id:foo@example.com In the special case that the query really is a message-id, the following should work echo "-- id:foo@example" | notmuch restore --format=batch-tag should work. Weirdly, that seems to even remove that attachment tag, I'm not sure if that is a bug. Anyway your patches are more general. Sorry, that's not a review yet. d