From mboxrd@z Thu Jan 1 00:00:00 1970 From: Austin Frank Subject: org-mairix bug? Date: Mon, 07 Jan 2008 23:12:53 -0500 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0293607700==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JC5pz-0005we-Ua for emacs-orgmode@gnu.org; Mon, 07 Jan 2008 23:13:16 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JC5pv-0005uj-7f for emacs-orgmode@gnu.org; Mon, 07 Jan 2008 23:13:15 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JC5pv-0005ud-3H for emacs-orgmode@gnu.org; Mon, 07 Jan 2008 23:13:11 -0500 Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JC5pu-00028H-On for emacs-orgmode@gnu.org; Mon, 07 Jan 2008 23:13:10 -0500 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1JC5pp-0005Ve-Vy for emacs-orgmode@gnu.org; Tue, 08 Jan 2008 04:13:05 +0000 Received: from cpe-74-74-148-109.rochester.res.rr.com ([74.74.148.109]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 08 Jan 2008 04:13:05 +0000 Received: from austin.frank by cpe-74-74-148-109.rochester.res.rr.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 08 Jan 2008 04:13:05 +0000 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --===============0293607700== Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" --=-=-= Content-Transfer-Encoding: quoted-printable Hello! I'm working on integrating mairix into my email workflow. The recently added nnmairix in gnus is a great tool-- I encourage any gnus + mairix users to try it. I'd like to make use of org-mairix as well, but I am having some trouble. The link seems to be built correctly, containing the proper options and message id. Unfortunately, it seems that the arguments to mairix aren't being constructed correctly. For me, to get any searches to work, I needed to append "m:" in front of the message-id in the search argument to org-mairix-command-substitution. I think this is just an oversight on the original author's part, as the function org-mairix-gnus-display-results actually checks for this string. In any case, I think the fix could look something like this =2D-8<---------------cut here---------------start------------->8--- (defun org-mairix-command-substitution (cmd search args) "Substitute '%search%' and '%args% in mairix search command." (while (string-match "%search%" cmd) (setq cmd (replace-match search 'fixedcase 'literal (concat "m:" cmd)))) (while (string-match "%args%" cmd) (setq cmd (replace-match args 'fixedcase 'literal cmd))) cmd) =2D-8<---------------cut here---------------end--------------->8--- This allows my links in org mode to single out the message with the specified ID. I get complaints from org-mairix-gnus-display-results because it doesn't think the first two characters of the search are "m:"... I can't figure out why this is the case. Thanks for org-mairix. I hope this report is useful. /au =2D-=20 Austin Frank http://aufrank.net GPG Public Key (D7398C2F): http://aufrank.net/personal.asc --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (Darwin) iD8DBQFHgvhGlHMl2/XbR4ERAiBuAJwNc1Pxntzzp8zHQXVNACBZlc4BuACgimT3 Fk0Niz2qGDDMNf8mRZJUPwI= =WnQT -----END PGP SIGNATURE----- --=-=-=-- --===============0293607700== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============0293607700==--