unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Xavier Maillard <xma@gnu.org>
To: Reiner Steib <Reiner.Steib@gmx.de>
Cc: emacs-devel@gnu.org
Subject: Re: [PATCH] New function to send a mail to the recipient at point
Date: Tue, 26 Feb 2008 03:00:09 +0100	[thread overview]
Message-ID: <200802260200.m1Q209gO006811@localhost.localdomain> (raw)
In-Reply-To: <v91w72sp0b.fsf@marauder.physik.uni-ulm.de> (message from Reiner Steib on Sun, 24 Feb 2008 10:05:40 +0100)


   On Sat, Feb 23 2008, Xavier Maillard wrote:

   > +2008-02-23  Xavier Maillard  <xma@gnu.org>
   > +
   > +	* 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.]

Yes, I did not change anything there. Git has added this for me,
I guess.

   > +(defun rmail-send-mail-at-point ()
   > +  "Edit a mail message to the recipient found at point."

   `M-x browse-url-at-point RET' already does this for me (in
   every mode).

Hum, it seems it does not for me using emacs -Q :

Debugger entered--Lisp error: (wrong-type-argument stringp browse-url-text-browser)
  start-process("lynxmailto:foo@bar.com" nil "xterm" "-e" browse-url-text-browser "mailto:foo@bar.com")
  apply(start-process ("lynxmailto:foo@bar.com" nil "xterm" "-e" browse-url-text-browser "mailto:foo@bar.com"))
  browse-url-text-xterm("mailto:foo@bar.com" nil)
  apply(browse-url-text-xterm "mailto:foo@bar.com" nil)
  browse-url-default-browser("mailto:foo@bar.com" nil)
  apply(browse-url-default-browser "mailto:foo@bar.com" nil)
  browse-url("mailto:foo@bar.com" nil)
  browse-url-at-point(nil)
  call-interactively(browse-url-at-point t nil)
  execute-extended-command(nil)
  call-interactively(execute-extended-command nil nil)

   I have `("^mailto:" . browse-url-mail)' in `browse-url-browser-function'.

With my patch, there is no need to customize anything. Maybe we
should change the default value of `browse-url-browser-function' ?

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

Thank you for the notice. I will check in what I should conform
to by reading the RFC.

	Xavier
-- 
http://www.gnu.org
http://www.april.org
http://www.lolica.org




      parent reply	other threads:[~2008-02-26  2:00 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-23  0:25 [PATCH] New function to send a mail to the recipient at point Xavier Maillard
2008-02-24  9:05 ` Reiner Steib
2008-02-24  9:56   ` Leo
2008-02-24 12:33     ` User-Agent header (was: [PATCH] New function to send a mail to the recipient at point) Reiner Steib
2008-02-24 17:49       ` User-Agent header Leo
2008-02-24 18:21       ` User-Agent header (was: [PATCH] New function to send a mail to the recipient at point) Stephen J. Turnbull
2008-02-24 18:41         ` User-Agent header Bill Wohler
2008-02-24 22:44           ` Stephen J. Turnbull
2008-02-26  2:00             ` Xavier Maillard
2008-02-26  2:00   ` Xavier Maillard [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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200802260200.m1Q209gO006811@localhost.localdomain \
    --to=xma@gnu.org \
    --cc=Reiner.Steib@gmx.de \
    --cc=emacs-devel@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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).