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 015C7431FB6 for ; Sun, 20 Mar 2011 08:40:50 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.689 X-Spam-Level: X-Spam-Status: No, score=-0.689 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_LOW=-0.7, T_MIME_NO_TEXT=0.01, UNPARSEABLE_RELAY=0.001] 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 WH4LAGzTOrGy for ; Sun, 20 Mar 2011 08:40:50 -0700 (PDT) Received: from mx1.riseup.net (mx1.riseup.net [204.13.164.18]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 89A11431FB5 for ; Sun, 20 Mar 2011 08:40:50 -0700 (PDT) Received: from tern.riseup.net (tern-pn.riseup.net [10.0.1.12]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "Gandi Standard SSL CA" (verified OK)) by mx1.riseup.net (Postfix) with ESMTPS id A6D0925ECB1; Sun, 20 Mar 2011 08:40:49 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: micah@tern.riseup.net) with ESMTPSA id 2C1EA14C16C Received: by algae (Postfix, from userid 1000) id AEC2B9436C; Sun, 20 Mar 2011 11:40:47 -0400 (EDT) From: micah anderson To: Matthieu Lemerre , notmuch Subject: Re: Org-mode support In-Reply-To: <87aagubq75.fsf@free.fr> References: <87aai7k0ae.fsf@free.fr> <87lj0fhg3g.fsf@algae.riseup.net> <87aagubq75.fsf@free.fr> User-Agent: Notmuch/0.5 (http://notmuchmail.org) Emacs/23.2.1 (i486-pc-linux-gnu) Date: Sun, 20 Mar 2011 11:40:42 -0400 Message-ID: <87ipvd241x.fsf@algae.riseup.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Virus-Scanned: clamav-milter 0.97 at mx1 X-Virus-Status: Clean 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: Sun, 20 Mar 2011 15:40:51 -0000 --=-=-= Content-Transfer-Encoding: quoted-printable On Thu, 17 Mar 2011 00:28:30 +0100, Matthieu Lemerre wrote: > > 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. >=20 > 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: >=20 > [[notmuch-search:toto%20and%20tata][Notmuch search: toto and tata]] Thanks, I'm somewhat new to org-mode, so I appreciate that information! > > 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? >=20 > 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. It sounds like you are right about the copyright issues.=20 I noticed one thing about your org add-on that would be nice to improve: it doesn't appear as if you support linking to a thread in notmuch-search-mode. If I have a search buffer, generated by "notmuch search tag:notmuch" and I find in there your message with the Subject "Org-mode support" and I put my cursor on it and do M-x org-store-link, the link that is generated is to "Notmuch search: tag:notmuch" rather than to the thread id that is under the cursor. A minor thing, but could be quite useful. thanks! micah --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQIcBAEBCgAGBQJNhh/6AAoJEIy/mjIoYaeQ05EP/3GuYQXxyauoBq7n9NfIN4d3 McL9waYq0rK4fzLOdwt/pW1BdZynV3gHoVHMRhpVB/QgsupceAoJGQbvnbLcR69w VH7bCJll6VviNajvhbv6LHQ2zqjg6J1j8Yz5DxyZsG4Xj61kXg160mrFnXkoaxEx j1VWByTIejhfKpgs8wcAVpOBfTTOhwuC5Vq6JdLptCsriuCr9zssrJv37KTnkJSC J41tt5lYLgYxRRo54C7LbIwru2sbqBycXlez6U9xnNEMHREJqWXnUAirFLjgXgxo nHK8K15Z04h2mtyMTKPbYmbjMJYzVnlPai1rd60XRhL0yNFklZZwoMyp7OgLA9IK q+KY1Ndg4F2sMJzIRibhC12KFWkyJixlDIpxiyti7yaIfDuZksNYnbRnoMqYJKA5 waj0M0IPAluvGZVOyxawRdAUVTHO5aNY8rSTnWtdDEmOxdfJ7jKO8ffjBw3GONXl aE6KPhWXt40L4he/sI7uazeVJVS1ZdevnY2I1n8hK75Z06iBUTboOybsOn4OjDfe I8aF/7iuGjdKrndgOovRnwxFAAIrNa/hR1v2nU9vm0WPs6NtdkWR0cJyfHID1yO7 oHM1EVhL0ZeuYW37e2108UOZPY6q2Tc4JpFmYHH9r8PnLCRpiFt/1wb26um2Gn7N SPG0d5Ur00qvUIj+5xqM =mL0L -----END PGP SIGNATURE----- --=-=-=--