From: Steven Lumos <steven@lumos.us>
To: emacs-orgmode@gnu.org
Subject: Re: problems with links to MH mails.
Date: Tue, 27 Nov 2007 10:09:26 -0800 [thread overview]
Message-ID: <x6fxyr8srt.fsf@bitty.lumos.us> (raw)
In-Reply-To: 20322.1195431142@lap1.smtl.co.uk
Pete Phillips <pete@smtl.co.uk> 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, "<kpd4uk7jm1.fsf@flexo.vxitech.com>"
>
> 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
prev parent reply other threads:[~2007-11-27 18:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-19 0:12 problems with links to MH mails Pete Phillips
2007-11-19 3:28 ` Bastien
2007-11-27 18:09 ` Steven Lumos [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=x6fxyr8srt.fsf@bitty.lumos.us \
--to=steven@lumos.us \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.