emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] New function to send a mail to the recipient at point


From: Reiner Steib
Subject: Re: [PATCH] New function to send a mail to the recipient at point
Date: Sun, 24 Feb 2008 10:05:40 +0100
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1.90 (gnu/linux)

On Sat, Feb 23 2008, Xavier Maillard wrote:

> +2008-02-23  Xavier Maillard  <address@hidden>
> +
> +     * mail/rmail.el (rmail-send-mail-at-point): New function. Send an email
> +     to the recipient address at point.
[...]

> -So, the MIME support is turned off for the moment." 
> +So, the MIME support is turned off for the moment."

[Unrelated whitespace change.]

> +(defun rmail-send-mail-at-point ()
> +  "Edit a mail message to the recipient found at point."
> +  (interactive)
> +  (require 'thingatpt)
> +  (let ((to (thing-at-point 'email)))
> +    (if to
> +     (mail nil to)
> +      (error "No email found at point"))))

`M-x browse-url-at-point RET' already does this for me (in every mode).
I have `("^mailto:"; . browse-url-mail)' in `browse-url-browser-function'.

[BTW, your User-Agent header is not confirming to RFC 2616 or the
usefor drafts.]

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]