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 A5283431FBC for ; Sun, 13 Dec 2009 03:52:32 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 uXXLyTbDfx6B for ; Sun, 13 Dec 2009 03:52:32 -0800 (PST) Received: from smtp5-g21.free.fr (smtp5-g21.free.fr [212.27.42.5]) by olra.theworths.org (Postfix) with ESMTP id D84FA431FAE for ; Sun, 13 Dec 2009 03:52:30 -0800 (PST) Received: from smtp5-g21.free.fr (localhost [127.0.0.1]) by smtp5-g21.free.fr (Postfix) with ESMTP id A4695D4813F for ; Sun, 13 Dec 2009 12:52:24 +0100 (CET) Received: from racin (vbo91-2-82-239-207-166.fbx.proxad.net [82.239.207.166]) by smtp5-g21.free.fr (Postfix) with ESMTP id ABC7AD48047 for ; Sun, 13 Dec 2009 12:52:20 +0100 (CET) From: Matthieu Lemerre To: notmuch@notmuchmail.org Date: Sun, 13 Dec 2009 12:52:56 +0100 Message-ID: <873a3f2iqv.fsf@free.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailman-Approved-At: Sun, 13 Dec 2009 14:31:49 -0800 Subject: [notmuch] [PATCH] Support for deletion by the emacs client X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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: Sun, 13 Dec 2009 11:52:32 -0000 Hello, I tried notmuch and I really like it. I like having an emacs email client, but was proficient with none of them (neither with non-emacs clients, btw). Notmuch really seems the way to go. However, support for deletion is important to me. Here is a first patch that implements it for the emacs interface. Here is how I did it: notmuch-search no longer list arguments with the deleted tag, unless you execute it with a prefix arg. When you launch it with C-u s, the query string changes, and it provides you the current query string by default. That way, if you want to search for mail, and then decide that you may have deleted it, you just have to type C-u s to find it. The good part is that it works even if you didn't knew about it, i.e. if you type C-u s to launch a new query. I also added a command history to notmuch-search. Now I'd like to write a command to expunge deleted mails; this shouldn't be difficult. Having notmuch detect that some mails disappeared and update the database seems more difficult, though. Regards, Matthieu Lemerre PS: I have trouble understanding why space on the last message on a thread deletes the inbox tag. If you do it, then you mail becomes untagged and imo quite difficult to search. How is the mail flow supposed to work?