From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/2620 Path: news.gmane.org!not-for-mail From: kai.grossjohann@gmx.net (=?iso-8859-1?q?Kai_Gro=DFjohann?=) Newsgroups: gmane.emacs.gnus.user Subject: Re: How to setup multiple imap accounts at single server Date: Sat, 14 Jun 2003 22:29:51 +0200 Organization: University of Duisburg, Germany Message-ID: <84llw42yio.fsf@lucy.is.informatik.uni-duisburg.de> References: <84he6wrgm2.fsf@lucy.is.informatik.uni-duisburg.de> <84d6hi79co.fsf@lucy.is.informatik.uni-duisburg.de> <84el1xzom5.fsf@lucy.is.informatik.uni-duisburg.de> 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 1138668986 15801 80.91.229.2 (31 Jan 2006 00:56:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 31 Jan 2006 00:56:26 +0000 (UTC) Original-X-From: nobody Tue Jan 17 17:30:58 2006 Original-Path: quimby.gnus.org!newsfeed1.e.nsc.no!nsc.no!nextra.com!news.tele.dk!news.tele.dk!small.news.tele.dk!fu-berlin.de!uni-berlin.de!pd9e1ece9.dip.t-dialin.NET!not-for-mail Original-Newsgroups: gnu.emacs.gnus Original-NNTP-Posting-Host: pd9e1ece9.dip.t-dialin.net (217.225.236.233) Original-X-Trace: fu-berlin.de 1055622625 19735643 217.225.236.233 (16 [73968]) Mail-Copies-To: never User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:s9+4DQ0WbtqchQDx/82D4WyWj8U= Original-Xref: bridgekeeper.physik.uni-ulm.de gnus-emacs-gnus:2760 Original-Lines: 48 X-Gnus-Article-Number: 2760 Tue Jan 17 17:30:58 2006 Xref: news.gmane.org gmane.emacs.gnus.user:2620 Archived-At: Reiner Steib <4.uce.03.r.s@nurfuerspam.de> writes: > On Fri, Jun 13 2003, Kai Großjohann wrote: > >> I'm no less amazed, then, that it works for me. I have this: > [...] >> Hm. So I'm using the real host name after all. > > Maybe we should call `gnus-netrc-machine' first with `server' and, if > that is nil with `(or nnimap-server-address nnimap-address)'? > > (alist (or (gnus-netrc-machine list server port "imap") > (gnus-netrc-machine list > (or nnimap-server-address > nnimap-address) > port "imap"))) > > This methods seem preferable than using several authinfo files IMHO > (and better than introducing an additional server variable). WDYT? Maybe it is sufficient to just put `server' inside the or statement, rather than calling gnus-netrc-machine twice? It seems to be cleaner, if it works. >> Anyone got a convenient mouse hole somewhere? > > I've read your suggestion several times and you convinced me that Gnus > obviously should behave as you described. :-) Phew. Anyhow, server is the server name, so the xyzzy in (nnimap "xyzzy" ...), right? And nnimap-address is the like-named server parameter, right? But what is nnimap-server-address? I believe that, given (nnimap "foo" (nnimap-address "bar") ...), Gnus should first look for a foo entry, then for a bar entry. Not sure if it should also look for any other entries. Hm. nnimap-server-address is an obsolete variable, I just see. So maybe it should be looked at last? So my proposal, without having tested anything: (or server nnimap-address nnimap-server-address) -- This line is not blank.