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

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

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


From: Sébastien Vauban
Subject: Conditionally point to a different IMAP server (home/work)
Date: Fri, 24 Dec 2004 15:37:45 +0100
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3.50 (windows-nt) Hamster/2.0.5.5

Hello,

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!

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


Currently, I'm using different "back-ends", but I dislike it (as
it breaks some configuration of default groups where to put sent
messages - GCc -, etc., as the names are different)...

    ,----
    | (setq gnus-secondary-select-methods '(
    |       (nnml "")
    |
    |       (nnimap ""
    |               (nnimap-address "mail.mywork.com")
    |
    |       (nnimap "home"
    |               (nnimap-address "169.51.86.39")
    | ))))
    `----

Can you help me?

Merry Christmas!!!
  Sébastien

-- 
Sébastien Vauban


reply via email to

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