unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Glenn Morris <rgm@gnu.org>
To: nyc4bos@aol.com
Cc: 10830@debbugs.gnu.org
Subject: bug#10830: 24.0.93; message-send-mail-function function no longer working
Date: Fri, 17 Feb 2012 02:56:42 -0500	[thread overview]
Message-ID: <r7mx8hx58l.fsf@fencepost.gnu.org> (raw)
In-Reply-To: <84pqde49ho.fsf@STATION03.i-did-not-set--mail-host-address--so-tickle-me> (nyc4bos@aol.com's message of "Thu, 16 Feb 2012 18:57:39 -0500")

nyc4bos@aol.com wrote:

> Consequently, the following function doesn't work anymore (while not
> with emacs -Q, of course):
>
> (defun message-send-mail-with-sendmail-or-smtp ()
>   "Send message with sendmail for local delivery, smtp for other."
>   (let ((to (save-restriction
>               (message-narrow-to-headers)
>               (message-fetch-field "to"))))
>     (if (and to (or (string-match (concat ".+@" system-name) to)
>                     (string-match ".+@localhost$" to)
>                     (string-match "^[^@]+$" to)))
>         (message-send-mail-with-sendmail)
>       (smtpmail-send-it))))
>
> (setq message-send-mail-function 'message-send-mail-with-sendmail-or-smtp)

In what way doesn't it work? What happens, under what circumstances?

You are basically saying that either or both of
message-send-mail-with-sendmail and smtpmail-send-it are not working.

The former works for me, the latter I cannot test.





  reply	other threads:[~2012-02-17  7:56 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-16 23:57 bug#10830: 24.0.93; message-send-mail-function function no longer working nyc4bos
2012-02-17  7:56 ` Glenn Morris [this message]
2012-02-17  8:24   ` Eli Zaretskii
2012-02-18  2:22     ` nyc4bos
2012-02-18 12:43       ` Eli Zaretskii
2012-02-20  8:25         ` Lars Ingebrigtsen
2012-03-27 22:15       ` Glenn Morris

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=r7mx8hx58l.fsf@fencepost.gnu.org \
    --to=rgm@gnu.org \
    --cc=10830@debbugs.gnu.org \
    --cc=nyc4bos@aol.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 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).