From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/9487 Path: news.gmane.org!not-for-mail From: someusernamehere Newsgroups: gmane.emacs.gnus.user Subject: changing smtp server? Date: Fri, 10 Aug 2007 17:31:26 -0000 Organization: http://groups.google.com Message-ID: <1186767086.955240.181340@d30g2000prg.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: sea.gmane.org 1186767673 13189 80.91.229.12 (10 Aug 2007 17:41:13 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 10 Aug 2007 17:41:13 +0000 (UTC) To: info-gnus-english@gnu.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Fri Aug 10 19:41:00 2007 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IJYTs-0005xF-E5 for gegu-info-gnus-english@m.gmane.org; Fri, 10 Aug 2007 19:41:00 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IJYTs-000782-2o for gegu-info-gnus-english@m.gmane.org; Fri, 10 Aug 2007 13:41:00 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!d30g2000prg.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.gnus Original-Lines: 45 Original-NNTP-Posting-Host: 189.149.99.39 Original-X-Trace: posting.google.com 1186767087 21831 127.0.0.1 (10 Aug 2007 17:31:27 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Fri, 10 Aug 2007 17:31:27 +0000 (UTC) User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.4) Gecko/20061201 Firefox/2.0.0.4 (Ubuntu-feisty),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: d30g2000prg.googlegroups.com; posting-host=189.149.99.39; posting-account=ps2QrAMAAAA6_jCuRt2JEIpn5Otqf_w0 Original-Xref: shelby.stanford.edu gnu.emacs.gnus:79675 X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.gnus.user:9487 Archived-At: Hey I have this on my .gnus file: ;; function that change between smtp servers (defun fs-change-smtp () "Change the SMTP server according to the current from line." (save-excursion (let ((from (save-restriction (message-narrow-to-headers) (message-fetch-field "from")))) (message "From is `%s', setting `smtpmail-smtp-server' to `%s'" from (cond ((string-match "foo@bar.org" from) ;; Use stmp-auth (message "Using smtp-auth") ;; Sending mail ((.................... ....................)) ((string-match "foo2@bar2.org" from) ;; Use other server (message "Using other server") ((....................... .......................)) (t (error (concat "Don't know which mail server to use for " from)))))))) (add-hook 'message-setup-hook 'fs-change-smtp) For change among smtp servers depending the "from" header, but..... what abou when I want to send News????, I want to send news with the from fuck-spam@foo.com, but this is not defined in the function fs- change-smtp then I get an "Don't know which mail server to use for ", how I can fix this? thanks