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 607C1431FB6 for ; Wed, 16 Mar 2011 16:19:21 -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=[FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001] 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 oRt4EED-vtIC for ; Wed, 16 Mar 2011 16:19:19 -0700 (PDT) Received: from smtp3-g21.free.fr (smtp3-g21.free.fr [212.27.42.3]) by olra.theworths.org (Postfix) with ESMTP id A6417431FB5 for ; Wed, 16 Mar 2011 16:19:18 -0700 (PDT) Received: from racin (unknown [82.239.207.166]) by smtp3-g21.free.fr (Postfix) with ESMTP id 9F1B3A6279; Thu, 17 Mar 2011 00:19:13 +0100 (CET) From: Matthieu Lemerre To: micah anderson , notmuch Subject: Re: Org-mode support In-Reply-To: <87lj0fhg3g.fsf@algae.riseup.net> References: <87aai7k0ae.fsf@free.fr> <87lj0fhg3g.fsf@algae.riseup.net> User-Agent: Notmuch/0.5 (http://notmuchmail.org) Emacs/23.2.1 (i486-pc-linux-gnu) Date: Thu, 17 Mar 2011 00:28:30 +0100 Message-ID: <87aagubq75.fsf@free.fr> 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: Wed, 16 Mar 2011 23:19:21 -0000 Hi Micah, > Thanks so much for sending this, its very interesting! I've just started > trying it and have managed to use M-x org-store-link on your email to > add an org-mode todo item to try out org-mode support for notmuch :) Great, that's how it is supposed to be used! :) > I have one question, how do you add multiple query arguments? For > example, in my org file I tried 'notmuch-search:tag:notmuch' - this > worked great, but if I did 'notmuch-search:tag:notmuch and subject:Org' > the link only works up until the first space. This is because org-mode links must be url encoded (this is a org-mode limitation, could do nothing about it). So in links that contain spaces, such as yours, spaces must be replaced by %20, like this: [[notmuch-search:toto%20and%20tata][Notmuch search: toto and tata]] > I also noticed that David Bremner has done something similar[0] and I > wonder if you have looked at his code[1], or if David has looked at > yours. Perhaps the start of a collaboration? If I remember correctly, I specifically forbid myself to look into this code because David had copyright issues with its employer. But I believe that both codes are doing essentially the same thing. Matthieu