Gnus development mailing list
 help / color / mirror / Atom feed
From: Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann)
Cc: ding@gnus.org
Subject: Re: smtpmail configuration
Date: 11 Mar 2001 00:37:32 +0100	[thread overview]
Message-ID: <vaf3dclxkjn.fsf@lucy.cs.uni-dortmund.de> (raw)
In-Reply-To: <8zmdjkwz.fsf@supelec.fr> (Fabrice Popineau's message of "10 Mar 2001 23:53:16 +0100")

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.


  reply	other threads:[~2001-03-10 23:37 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-03-10 22:53 Fabrice Popineau
2001-03-10 23:37 ` Kai Großjohann [this message]
2001-03-11 15:28   ` Fabrice Popineau
2001-03-11 15:47     ` Kai Großjohann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=vaf3dclxkjn.fsf@lucy.cs.uni-dortmund.de \
    --to=kai.grossjohann@cs.uni-dortmund.de \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).