From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: bug#10830: 24.0.93; message-send-mail-function function no longer working Date: Fri, 17 Feb 2012 02:56:42 -0500 Message-ID: References: <84pqde49ho.fsf@STATION03.i-did-not-set--mail-host-address--so-tickle-me> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1329465448 28636 80.91.229.3 (17 Feb 2012 07:57:28 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 17 Feb 2012 07:57:28 +0000 (UTC) Cc: 10830@debbugs.gnu.org To: nyc4bos@aol.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Feb 17 08:57:25 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RyIh2-0004ZS-FF for geb-bug-gnu-emacs@m.gmane.org; Fri, 17 Feb 2012 08:57:24 +0100 Original-Received: from localhost ([::1]:35538 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RyIh2-0004nI-4g for geb-bug-gnu-emacs@m.gmane.org; Fri, 17 Feb 2012 02:57:24 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:50046) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RyIgt-0004n3-NH for bug-gnu-emacs@gnu.org; Fri, 17 Feb 2012 02:57:21 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RyIgo-0002qA-1L for bug-gnu-emacs@gnu.org; Fri, 17 Feb 2012 02:57:15 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:39639) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RyIgn-0002q5-Uo for bug-gnu-emacs@gnu.org; Fri, 17 Feb 2012 02:57:10 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1RyIib-0002T7-On for bug-gnu-emacs@gnu.org; Fri, 17 Feb 2012 02:59:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Glenn Morris Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 17 Feb 2012 07:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10830 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 10830-submit@debbugs.gnu.org id=B10830.13294655169459 (code B ref 10830); Fri, 17 Feb 2012 07:59:01 +0000 Original-Received: (at 10830) by debbugs.gnu.org; 17 Feb 2012 07:58:36 +0000 Original-Received: from localhost ([127.0.0.1]:43262 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RyIiC-0002SV-HX for submit@debbugs.gnu.org; Fri, 17 Feb 2012 02:58:36 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]:43774 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RyIiA-0002SP-Tt for 10830@debbugs.gnu.org; Fri, 17 Feb 2012 02:58:35 -0500 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1RyIgM-0008QA-LK; Fri, 17 Feb 2012 02:56:42 -0500 X-Spook: clandestine United Nations infowar blackjack mania wire X-Ran: (nyc4bos@aol.com's message of "Thu, 16 Feb 2012 18:57:39 -0500") User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:56955 Archived-At: 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.