all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Simon Josefsson <jas@extundo.com>
Subject: Re: sendmail.el bug or expected behavior?
Date: Tue, 20 Jan 2004 12:53:11 +0100	[thread overview]
Message-ID: <iluisj6rg48.fsf@latte.josefsson.org> (raw)
In-Reply-To: 877jzn2lk8.fsf@raven.i.defaultvalue.org

Rob Browning <rlb@defaultvalue.org> writes:

> Emacs doesn't always check for a non-zero exit status from sendmail,
> which can lead to silent mail lossage.  For example:
>
>  emacs21 -q
>  [in the *scratch* buffer]
>  (setq sendmail-program "/bin/false") C-j
>  M-x vm-mail RET
>  check that sendmail-program has right value with C-h v
>  fill in a short test message
>  C-c C-c
>  emacs says `Sending...done'
>  (no mail has been sent, of course)
>
> Although from reading mail-interactive's description, I wasn't sure if
> this behavior was a bug or intentional:
>
>   mail-interactive's value is nil
>   Documentation: *Non-nil means when sending a message wait for and
>   display errors.  nil means let mailer mail back a message to report
>   errors.

It is intentional.  I'm not sure it is a good idea, but it has been
discussed before.

> If this isn't just expected behavior, then someone suggested this as a
> fix:

I think the proper fix is to change the default value of
`mail-interactive' to t instead, but I'm not sure there is agreement
to do that.  If you don't like the default behaviour of silently
ignoring exit codes, you can customize the variable as well, no need
to patch the code.

IIRC, the motivation for this is that waiting for /usr/sbin/sendmail
to exit, and thus return an exit code, can take hours with some MTAs
if there is no network connectivity.

  reply	other threads:[~2004-01-20 11:53 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-20  6:14 sendmail.el bug or expected behavior? Rob Browning
2004-01-20 11:53 ` Simon Josefsson [this message]
2004-01-21  9:21 ` Richard Stallman
2004-01-21 18:28   ` Kevin Rodgers
2004-01-21 22:33   ` Simon Josefsson
2004-01-22 19:00     ` Richard Stallman
2004-01-22 19:09       ` Simon Josefsson
2004-01-23 12:29         ` Ian Jackson
2004-01-23 15:13           ` Jan D.
2004-01-26 11:20             ` Ian Jackson
2004-01-26 13:28               ` Jan D.
2004-01-26 13:40                 ` Ian Jackson
2004-01-26 13:50                   ` Jan D.
2004-01-26 14:10                     ` Ian Jackson
2004-01-26 14:25                       ` Jan D.
2004-01-26 14:29                         ` Ian Jackson
2004-01-26 14:35                           ` Jan D.
2004-01-26 14:42                             ` Ian Jackson
2004-01-27 18:49                   ` Richard Stallman
2004-01-27 21:03                     ` Stefan Monnier
2004-01-29 17:52                       ` Richard Stallman
2004-01-25 14:46           ` Richard Stallman
2004-01-23 18:25         ` Richard Stallman
2004-01-23 18:33           ` Eli Zaretskii
2004-01-23 18:38           ` Simon Josefsson
2004-01-26 14:09             ` Ian Jackson
2004-01-26 16:21               ` Simon Josefsson
2004-01-26 18:22                 ` Stefan Monnier
2004-01-26 19:26                   ` Simon Josefsson
2004-01-26 20:47                     ` Stefan Monnier
2004-01-27 18:50                 ` Richard Stallman
2004-01-30  4:27 ` Rob Browning
2004-01-30 14:45   ` Stefan Monnier
2004-01-30 14:46   ` Stefan Monnier
2004-01-30 14:46     ` David Kastrup
2004-01-30 16:14       ` Stefan Monnier
2004-01-31  7:51   ` Richard Stallman
2004-01-31 17:26     ` Rob Browning

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=iluisj6rg48.fsf@latte.josefsson.org \
    --to=jas@extundo.com \
    /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.