info-gnus-english
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Conditionally point to a different IMAP server (home/work)


From: Reiner Steib
Subject: Re: Conditionally point to a different IMAP server (home/work)
Date: Tue, 28 Dec 2004 03:34:30 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux)

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 via email to

[Prev in Thread] Current Thread [Next in Thread]