From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steven Lumos Subject: Re: problems with links to MH mails. Date: Tue, 27 Nov 2007 10:09:26 -0800 Message-ID: References: <20322.1195431142@lap1.smtl.co.uk> 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 1Ix4tL-0001HH-Ri for emacs-orgmode@gnu.org; Tue, 27 Nov 2007 13:10:39 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ix4tJ-0001Ey-5i for emacs-orgmode@gnu.org; Tue, 27 Nov 2007 13:10:39 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ix4tJ-0001Et-1C for emacs-orgmode@gnu.org; Tue, 27 Nov 2007 13:10:37 -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 1Ix4tI-0004PQ-LJ for emacs-orgmode@gnu.org; Tue, 27 Nov 2007 13:10:37 -0500 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Ix4sV-00022B-Hk for emacs-orgmode@gnu.org; Tue, 27 Nov 2007 18:09:47 +0000 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 ; Tue, 27 Nov 2007 18:09:47 +0000 Received: from steven by wsip-24-234-106-159.lv.lv.cox.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 27 Nov 2007 18:09:47 +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 Pete Phillips writes: > I'm having difficulties using links within org to MH mails. > > For example, I have an email in a folder, and I hit ^C-l to store it. > > In org-mode, I hit ^C-^L to insert the link, and it gets inserted as: > > Link: mhe:+mail-lists/org-mode#kpd4uk7jm1.fsf@flexo.vxitech.com > Description: Email from Dale Smith: [Orgmode] Re: Linux Journal > > So far so good. However if I try to look at the link using ^C-^O I > get an error message. In *Messages* it says: > > Executing mairix... > mh-mairix-execute-search: Wrong type argument: listp, "" > > It is not just mairix BTW - I had a similar problem with swish++. > > Any ideas ? Is this something I need to raise on the mh list or is it an > org-mode issue ? > > Regards > Pete Here's my hack that works for mairix only. I think the real fix is MH-E needs a better way to search for Message-ID. (add-hook 'org-load-hook (lambda () (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"))))))) Steve