From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/4298 Path: news.gmane.org!not-for-mail From: =?iso-8859-1?q?S=E9bastien_Vauban?= Newsgroups: gmane.emacs.gnus.user Subject: Conditionally point to a different IMAP server (home/work) Date: Fri, 24 Dec 2004 15:37:45 +0100 Organization: Sebastien Vauban Message-ID: 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 22677 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:32 2006 Original-Path: quimby.gnus.org!newsfeed1.e.nsc.no!uio.no!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!feeder1.cambrium.nl!feed.tweaknews.nl!217.73.144.44.MISMATCH!ecngs!feeder.ecngs.de!feed1.news.be.easynet.net!feed0.news.be.easynet.net!not-for-mail Original-Newsgroups: gnu.emacs.gnus X-www-site: Under construction... User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3.50 (windows-nt) Hamster/2.0.5.5 Cancel-Lock: sha1:MQ7UJQqQ6ToBDW7vWnbXHOeCctc= Original-NNTP-Posting-Date: 24 Dec 2004 14:37:56 GMT Original-NNTP-Posting-Host: 81.188.7.152 Original-X-Trace: 1103899076 feed0.news.be.easynet.net 2027 [::ffff:81.188.7.152]:37534 Original-X-Complaints-To: abuse@be.easynet.net Original-Xref: bridgekeeper.physik.uni-ulm.de gnus-emacs-gnus:4439 Original-Lines: 45 X-Gnus-Article-Number: 4439 Tue Jan 17 17:33:32 2006 Xref: news.gmane.org gmane.emacs.gnus.user:4298 Archived-At: 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