From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/9491 Path: news.gmane.org!not-for-mail From: someusernamehere Newsgroups: gmane.emacs.gnus.user Subject: Re: changing smtp server? Date: Fri, 10 Aug 2007 18:22:27 -0000 Organization: http://groups.google.com Message-ID: <1186770147.837979.152700@x35g2000prf.googlegroups.com> References: <1186767086.955240.181340@d30g2000prg.googlegroups.com> <878x8jxoke.fsf@topper.koldfront.dk> <1186768754.927751.57230@z24g2000prh.googlegroups.com> <874pj7xnzx.fsf@topper.koldfront.dk> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1186771374 25587 80.91.229.12 (10 Aug 2007 18:42:54 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 10 Aug 2007 18:42:54 +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 20:42:52 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 1IJZRj-0002M1-TN for gegu-info-gnus-english@m.gmane.org; Fri, 10 Aug 2007 20:42:52 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IJZRj-0007rO-5t for gegu-info-gnus-english@m.gmane.org; Fri, 10 Aug 2007 14:42:51 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!x35g2000prf.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.gnus Original-Lines: 66 Original-NNTP-Posting-Host: 189.149.99.39 Original-X-Trace: posting.google.com 1186770149 30781 127.0.0.1 (10 Aug 2007 18:22:29 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Fri, 10 Aug 2007 18:22:29 +0000 (UTC) In-Reply-To: <874pj7xnzx.fsf@topper.koldfront.dk> 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: x35g2000prf.googlegroups.com; posting-host=189.149.99.39; posting-account=ps2QrAMAAAA6_jCuRt2JEIpn5Otqf_w0 Original-Xref: shelby.stanford.edu gnu.emacs.gnus:79679 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:9491 Archived-At: On 10 ago, 13:06, a...@koldfront.dk (Adam Sj=F8gren) wrote: > On Fri, 10 Aug 2007 17:59:14 -0000, someusernamehere wrote: > >> If you must use an email-adress that isn't yours, use the .invalid > >> top-level domain. > > What is this?? > > > > >> See (Info-goto-node "(Gnus)Posting Styles") or > >> for the details. > > Which I mean is about the function posted by my, what/how indicate > > that the invalid from ( invalid-f...@foo.bar or whatever) must send > > mail across newsserver > > I do not understand your question this time around. > > You want to specify a from-address that will be used when you write a > news-article, right? > Nope, I have now configured these in posting styles, which I want is: 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 "f...@bar.org" from) ;; Use stmp-auth (message "Using smtp-auth") ;; Sending mail ((.................... ....................)) ((string-match "f...@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-s...@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