From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/4299 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.gnus.user Subject: Re: Conditionally point to a different IMAP server (home/work) Date: Tue, 28 Dec 2004 03:34:30 +0100 Message-ID: References: Reply-To: Reiner Steib NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1138670259 22680 80.91.229.2 (31 Jan 2006 01:17:39 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 31 Jan 2006 01:17:39 +0000 (UTC) Original-X-From: nobody Tue Jan 17 17:33:33 2006 Original-Newsgroups: gnu.emacs.gnus X-Face: 1;h7XMU[7l}$T@J.D}5z*w8Tg'}B5ArAWc8>2X~otB;kOjKs8X%|hTC#dG:%Vpx")x7S/`v :VXU#fZW$X$zdhEU.RfVQ@<-m9IuN{Hm"fW{,5]6kR'M*vEs+{5Cj!L(JTRzA$(},?5J=sm;%Od 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/