Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: "Sébastien Vauban" <seb.vauban@la.poste.net>
Subject: Conditionally point to a different IMAP server (home/work)
Date: Fri, 24 Dec 2004 15:37:45 +0100	[thread overview]
Message-ID: <u652r7oee.fsf@laposte.net> (raw)

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	other threads:[~2004-12-24 14:37 UTC|newest]

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

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=u652r7oee.fsf@laposte.net \
    --to=seb.vauban@la.poste.net \
    /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).