all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Art Werschulz <agw@dsm.fordham.edu>
To: help-gnu-emacs@gnu.org
Subject: "confirm before send" in message mode
Date: Tue, 10 Aug 2010 12:27:48 -0400	[thread overview]
Message-ID: <ue4of2a0vv.fsf@sobolev.dsm.fordham.edu> (raw)

Hi.

We just upgraded from Fedora 12 to Fedora 13.  
We're now using:
  GNU Emacs 23.2.1 (i386-redhat-linux-gnu, GTK+ Version 2.20.1) of
  2010-05-13 on x86-01.phx2.fedoraproject.org
This version of emacs uses Message Mode, rather than Mail Mode, for
composing outgoing email.

Under the old regime, I used the following Emacs Lisp code to ask
whether I really wanted to send a msg:

------%<--%<--%<---cut here---%<--%<--%<----------------------------

;;; from fpb@fore.com (Frank P. Bresz)

(defun my-sendmail-send-it ()
  (interactive)
  (if (y-or-n-p "Really send? ")
	(sendmail-send-it)
    (error "Send Aborted")))

(setq send-mail-function 'my-sendmail-send-it)
------%<--%<--%<---cut here---%<--%<--%<----------------------------

Now the info pages say:

  The variable `send-mail-function' controls how the default mail user
  agent sends mail.  Its value should be a function, which can be one of
  the following:

     `sendmail-send-it'
        Send mail using the system's default `sendmail' (or
        `sendmail'-compatible) program.  This is the default on Unix and
        GNU, and works provided the system is a valid "mail host" (that is,
        provided it can deliver mail via SMTP).

So I would expect this code to work under Message Mode.  But it
doesn't.  In other words, I get no confirmation check, and the mail is
simply sent.

Any suggestions on what I'm missing here?  Thanks.

-- 
Art Werschulz (8-{)}   "Metaphors be with you."  -- bumper sticker
GCS/M (GAT): d? -p+ c++ l++ u+ P++ e--- m* s n+ h f g+ w+ t+ r- 
Net: agw@dsm.fordham.edu http://www.dsm.fordham.edu/~agw
Phone:   Fordham U. (212) 636-6325, Columbia U. (646) 775-6035


                 reply	other threads:[~2010-08-10 16:27 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=ue4of2a0vv.fsf@sobolev.dsm.fordham.edu \
    --to=agw@dsm.fordham.edu \
    --cc=help-gnu-emacs@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.