From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/62295 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.devel,gmane.emacs.gnus.general Subject: Re: gnus / message-send-mail-with-mailclient [patch] Date: Sat, 18 Mar 2006 12:44:38 +0100 Message-ID: References: <059BF802-B4EB-433E-AF78-024107CD7E16@gmail.com> <553F677F-B2E1-42F3-8DBC-96734109EBA2@gmail.com> Reply-To: Reiner Steib NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1142688157 26332 80.91.229.2 (18 Mar 2006 13:22:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 18 Mar 2006 13:22:37 +0000 (UTC) Cc: David Reitter , ding@gnus.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Mar 18 14:22:25 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FKbNc-0007mk-NV for ged-emacs-devel@m.gmane.org; Sat, 18 Mar 2006 14:22:06 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FKbNb-0007ys-VE for ged-emacs-devel@m.gmane.org; Sat, 18 Mar 2006 08:22:03 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FKbNM-0007yi-On for emacs-devel@gnu.org; Sat, 18 Mar 2006 08:21:48 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FKbNM-0007yW-1E for emacs-devel@gnu.org; Sat, 18 Mar 2006 08:21:48 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FKbNL-0007yT-ON for emacs-devel@gnu.org; Sat, 18 Mar 2006 08:21:47 -0500 Original-Received: from [134.60.1.1] (helo=mail.uni-ulm.de) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1FKbSO-0000Z9-K7; Sat, 18 Mar 2006 08:27:01 -0500 Original-Received: from bridgekeeper.physik.uni-ulm.de (bridgekeeper.physik.uni-ulm.de [134.60.10.123]) by mail.uni-ulm.de (8.13.4/8.13.4) with ESMTP id k2IDLc4G017775; Sat, 18 Mar 2006 14:21:39 +0100 (MET) Original-Received: from viandante.physik.uni-ulm.de (bridgekeeper.physik.uni-ulm.de [134.60.10.123]) by bridgekeeper.physik.uni-ulm.de (Postfix) with SMTP id DD006114BD; Sat, 18 Mar 2006 14:21:36 +0100 (CET) Original-Received: (nullmailer pid 17350 invoked by uid 170); Sat, 18 Mar 2006 11:44:39 -0000 Original-To: Eli Zaretskii , Simon Josefsson X-Face: 3Phac&+dw=IZHjhua]bp}LH<*p{qzj8u+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:51806 gmane.emacs.gnus.general:62295 Archived-At: On Sat, Mar 18 2006, Eli Zaretskii wrote: >> From: Reiner Steib [...] >> --8<---------------cut here---------------start------------->8--- >> (defun message-send-mail-function () >> "Return suitable value for the variable `message-send-mail-function'." >> (cond ((and sendmail-program >> (executable-find sendmail-program)) >> 'message-send-mail-with-sendmail) >> ((and (locate-library "smtpmail") >> (require 'smtpmail) >> smtpmail-default-smtp-server) >> 'message-smtpmail-send-it) >> ((locate-library "mailclient") >> 'message-send-mail-with-mailclient) >> (t >> (lambda () >> (error "Don't know how to send mail. Please customize `message-send-mail-function'."))))) >> --8<---------------cut here---------------end--------------->8--- > > This is good, but I think using smtpmail by default is not the best > idea: it requires manual setup (at the very least, the SMTP server > address). Yes, therefore my suggestion checks if `smtpmail-default-smtp-server' is non-nil. But maybe this is not sufficient or we should better check `smtpmail-smtp-server'. Simon? > So I think mailclient should be used in preference to smtpmail. If the user (or site admin) has configured `smtpmail-[default-]smtp-server' (or $SMTPSERVER) I think we can assume that it works. Else the user can customize the variable `message-send-mail-function'. I'd like to add `mailclient.el' to Gnus' contrib directory so that Emacs 21 (or XEmacs) users can also use it. David, WDYT? Bye, Reiner. -- ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/