From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steven Lumos Subject: Re: Integration of Org mode and mairix Date: Thu, 16 Aug 2007 11:48:20 -0700 Message-ID: <864piz8gej.fsf@bitty.lumos.us> References: <87r6n6ni2j.fsf@bzg.ath.cx> <20070720160833.GD28297@atlantic.linksys.moosehall> <87k5spsw81.fsf@bzg.ath.cx> <87ejip7ud8.fsf@bzg.ath.cx> <876440tsul.fsf@presario.homelinux.org> <87k5sgpg6o.fsf@bzg.ath.cx> <87lkcqlppr.fsf@presario.homelinux.org> <87ps1z5iyk.fsf@bzg.ath.cx> <868x8dafsh.fsf@bitty.lumos.us> <881d134c0ba15b793afd2f6f4489e49e@science.uva.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ILkOY-00033Y-3y for emacs-orgmode@gnu.org; Thu, 16 Aug 2007 14:48:34 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ILkOV-0002ys-UY for emacs-orgmode@gnu.org; Thu, 16 Aug 2007 14:48:33 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ILkOV-0002yj-RV for emacs-orgmode@gnu.org; Thu, 16 Aug 2007 14:48:31 -0400 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 1ILkOV-0003IN-6w for emacs-orgmode@gnu.org; Thu, 16 Aug 2007 14:48:31 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1ILkOT-0004y5-2X for emacs-orgmode@gnu.org; Thu, 16 Aug 2007 20:48:29 +0200 Received: from wsip-24-234-106-159.lv.lv.cox.net ([24.234.106.159]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 16 Aug 2007 20:48:29 +0200 Received: from steven by wsip-24-234-106-159.lv.lv.cox.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 16 Aug 2007 20:48:29 +0200 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 Carsten Dominik writes: > On Aug 15, 2007, at 0:54, Steven Lumos wrote: > >> I have not been following very closely, so sorry if this is redundant. >> I currently use mairix through org-follow-mhe-link, although I had to >> do a little hacking to make MH-E do a search by message-id. > > Interesting, maybe you would like to share your hack? Well... It's not really useful to add to org, and guaranteed to break for anyone not using mairix for MH-E searching, but here it is. The only change is prefixing the message-id with m:. (defun org-follow-mhe-link (folder article) "Follow an MHE link to FOLDER and ARTICLE. If ARTICLE is nil FOLDER is shown. If the configuration variable `org-mhe-search-all-folders' is t and `mh-searcher' is pick, ARTICLE is searched in all folders. Indexed searches (swish++, namazu, and others supported by MH-E) will always search in all folders." (require 'mh-e) (require 'mh-search) (require 'mh-utils) (mh-find-path) (if (not article) (mh-visit-folder (mh-normalize-folder-name folder)) (mh-search-choose) (if (equal mh-searcher 'pick) (progn (mh-search folder (list "--message-id" article)) (when (and org-mhe-search-all-folders (not (org-mhe-get-message-real-folder))) (kill-this-buffer) (mh-search "+" (list "--message-id" article)))) (mh-search "+" (list (concat "m:" article))) (if (org-mhe-get-message-real-folder) (mh-show-msg 1) (kill-this-buffer) (error "Message not found"))))) >> It all works great for me, but I think it would be nice if following a >> link didn't depend on what MUA or search I happen to use. Couldn't it >> easily enough be mail:...? Then I could send an Org file to a friend >> and the link will Just Work for them. > > That would not work universally either, for example on a windows > machine. > > - Carsten I'm a non-Windows person, but in theory I think I could write a program that would drive Outlook or whatever (even Google Desktop Search?) through COM to bring up a message by message-id. Likewise, you could probably snarf the message-id of the currently displayed message from Outlook for org-store-outlook-link. :-) Steve