Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Reiner Steib <reinersteib+from-uce@imap.cc>
Subject: Re: Conditionally point to a different IMAP server (home/work)
Date: Tue, 28 Dec 2004 03:34:30 +0100	[thread overview]
Message-ID: <v97jn35ex5.fsf@marauder.physik.uni-ulm.de> (raw)
In-Reply-To: <u652r7oee.fsf@laposte.net>

On Fri, Dec 24 2004, Sébastien Vauban wrote:

> I'd like help to conditionally configure the address of my IMAP
> server, depending on the fact I'm at work or at the office (they
> have a different address through the use of VPN and NAT).
>
> I already tried the following, but without any success!

You want backquote ` and comma , (see (info "(elisp)Backquote") for
details):

(setq gnus-secondary-select-methods
      `((nnml "")
	(nnimap ""
		(nnimap-address
		 ,(cond ((string= (upcase (system-name)) "PC3701")
			 "169.51.86.39")
			(t
			 "mail.mywork.com"))))))

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/


      reply	other threads:[~2004-12-28  2:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-24 14:37 Sébastien Vauban
2004-12-28  2:34 ` Reiner Steib [this message]

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=v97jn35ex5.fsf@marauder.physik.uni-ulm.de \
    --to=reinersteib+from-uce@imap.cc \
    --cc=Reiner.Steib@gmx.de \
    /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).