From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/35300 Path: main.gmane.org!not-for-mail From: Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai =?iso-8859-1?q?Gro=DFjohann?=) Newsgroups: gmane.emacs.gnus.general Subject: Re: smtpmail configuration Date: 11 Mar 2001 00:37:32 +0100 Message-ID: References: <8zmdjkwz.fsf@supelec.fr> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035171065 2251 80.91.224.250 (21 Oct 2002 03:31:05 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 03:31:05 +0000 (UTC) Cc: ding@gnus.org Return-Path: Original-Received: (qmail 28206 invoked by alias); 10 Mar 2001 23:38:36 -0000 Original-Received: (qmail 28201 invoked from network); 10 Mar 2001 23:38:35 -0000 Original-Received: from waldorf.cs.uni-dortmund.de (129.217.4.42) by gnus.org with SMTP; 10 Mar 2001 23:38:35 -0000 Original-Received: from marcy.cs.uni-dortmund.de (marcy.cs.uni-dortmund.de [129.217.20.159]) by waldorf.cs.uni-dortmund.de with ESMTP id AAA29020; Sun, 11 Mar 2001 00:37:37 +0100 (MET) Original-Received: from lucy.cs.uni-dortmund.de (lucy [129.217.20.160]) by marcy.cs.uni-dortmund.de id AAA06006; Sun, 11 Mar 2001 00:37:37 +0100 (MET) Original-Received: (from grossjoh@localhost) by lucy.cs.uni-dortmund.de (8.9.3/8.9.3/Debian 8.9.3-21) id AAA03603; Sun, 11 Mar 2001 00:37:37 +0100 X-Face: 6=pZ4hVbjN:C?j1$h/-bi4:F%*~B#Rxb$[0%!{5NK"dE:_QRAM]Dzl=$yMu%Rh4xCSm/#>! $n%@SHJ](KFJKL,uF\=G=bRJQC$ ?+Dlxu*pj.Z,-GK<~y7sd/l*PN\]>} In-Reply-To: <8zmdjkwz.fsf@supelec.fr> (Fabrice Popineau's message of "10 Mar 2001 23:53:16 +0100") User-Agent: Gnus/5.090001 (Oort Gnus v0.01) Emacs/21.0.99 Original-Lines: 22 Xref: main.gmane.org gmane.emacs.gnus.general:35300 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:35300 On 10 Mar 2001, Fabrice Popineau wrote: > So I'm asking : is there any clever way to set the smtp server (I > use smtpmail) automagically ? For example, you could have a list of > ip class addresses and set the smtp server based on the current ip > number. Maybe I'm just dreaming... Maybe the easiest way to do it is to run `ifconfig' from a login script, parse the output, and write the local IP address to an environment variable. Then you can do like this in Emacs: (let ((x (getenv "IPADDR"))) (cond ((string-match "^10\\.10\\." x) ..do.stuff..) ((string-match "^12\\." x) ..do.other.stuff..))) kai -- Be indiscrete. Do it continuously.