[macemacsjp-english 262] Re: emacs as mailto target

アーカイブの一覧に戻る

Jesse Alama alama****@stanf*****
Sat Oct 8 15:22:03 JST 2005


As an initial solution, try this:

(setq browse-url-browser-function
      '(("^mailto:" lambda (url &rest stuff) (compose-mail (substring url 7)))
        ("." . browse-url-default-macosx-browser)))

I just tried this out by putting

mailto:alama****@stanf*****

in my *scratch* buffer, putting point at the beginning of this URL,
evaluating `browse-url', and I was prompted with a message buffer
whose `to' field was initialized to `alama****@stanf*****'.

More elaborate parsing of the input from `browse-url' is possible;
currently, my minifunction just extract the addressee field.  (The
purpose of `(substring url 7)' is to strip away the first seven
characters of the value of `url', which begins with "mailto:", which
has seven characters.)

I'm not sure whether this hack will work in wanderlust.

Good luck,

Jesse

John Owens <john_owens****@yahoo*****> writes:

> How can I configure Carbon Emacs to accept "mailto:" URLs as the mailto client?
> w3m can "do the right thing" with mailto, so the right thing to do is to set
> browse-url-browser-function to accept "^mailto:". But there does not appear to
> be support in Carbon Emacs to handle this. Suggestions?
>
> JDO
>
> __________________________________ 
> Yahoo! Music Unlimited 
> Access over 1 million songs. Try it free.
> http://music.yahoo.com/unlimited/
> _______________________________________________
> macemacsjp-english mailing list
> macem****@lists*****
> http://lists.sourceforge.jp/mailman/listinfo/macemacsjp-english

-- 
Jesse Alama (alama****@stanf*****)



More information about the macemacsjp-english mailing list
アーカイブの一覧に戻る