all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* problems with links to MH mails.
@ 2007-11-19  0:12 Pete Phillips
  2007-11-19  3:28 ` Bastien
  2007-11-27 18:09 ` Steven Lumos
  0 siblings, 2 replies; 3+ messages in thread
From: Pete Phillips @ 2007-11-19  0:12 UTC (permalink / raw)
  To: emacs-orgmode

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

--
Pete Phillips, Acting Director,     |   http://www.smtl.co.uk/
Surgical Materials Testing Lab,     |   http://www.worldwidewounds.com/
Princess of Wales Hospital, S Wales |   http://www.dressings.org/
Tel/Fax: +44 1656-752820/30         |   pete@smtl.co.uk

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: problems with links to MH mails.
  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
  1 sibling, 0 replies; 3+ messages in thread
From: Bastien @ 2007-11-19  3:28 UTC (permalink / raw)
  To: emacs-orgmode

Pete Phillips <pete@smtl.co.uk> writes:

> 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>"

Looks like this is a problem with mh-mairix-execute-search, not with
org-mode... 

> It is not just mairix BTW - I had a similar problem with swish++. 

Then even more probably a mh problem while calling external indexing
tools, no?

> Any ideas ? Is this something I need to raise on the mh list or is it
> an org-mode issue ?

Let us know if you're luckier with mh people.

-- 
Bastien

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: problems with links to MH mails.
  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
  1 sibling, 0 replies; 3+ messages in thread
From: Steven Lumos @ 2007-11-27 18:09 UTC (permalink / raw)
  To: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-11-27 18:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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

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.