From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/73096 Path: news.gmane.org!not-for-mail From: Richard Riley Newsgroups: gmane.emacs.gnus.general Subject: Re: User name defaults Date: Thu, 14 Oct 2010 04:33:10 +0200 Organization: aich tea tea pea dicky riley dot net Message-ID: References: <8362x5u37r.fsf@aol.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1287023612 27416 80.91.229.12 (14 Oct 2010 02:33:32 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 14 Oct 2010 02:33:32 +0000 (UTC) Cc: ding@gnus.org To: nyc4bos@aol.com Original-X-From: ding-owner+M21468=ding+2Daccount=gmane.org@lists.math.uh.edu Thu Oct 14 04:33:29 2010 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1P6DdJ-0004IE-82 for ding-account@gmane.org; Thu, 14 Oct 2010 04:33:29 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1P6DdI-0004uo-83 for ding-account@gmane.org; Wed, 13 Oct 2010 21:33:28 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1P6DdF-0004ug-HU for ding@lists.math.uh.edu; Wed, 13 Oct 2010 21:33:25 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1P6Dd8-0000WV-OR for ding@lists.math.uh.edu; Wed, 13 Oct 2010 21:33:22 -0500 Original-Received: from mail-bw0-f44.google.com ([209.85.214.44]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1P6Dd7-0000a0-00 for ; Thu, 14 Oct 2010 04:33:17 +0200 Original-Received: by bwz14 with SMTP id 14so131126bwz.17 for ; Wed, 13 Oct 2010 19:33:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject :organization:references:date:in-reply-to:message-id:user-agent :mime-version:content-type:content-transfer-encoding; bh=Em9OWPwgBacVRTtQOh3UwI+RofIqET8UEW4EAZfrmuE=; b=rX55/rhYMcOPTXoZ+z0XpO5moCEzYsCzauVHTp/ve5egpBDiq2r/Lmfn8xZNdqx9kc An5f40r3mLrlFEygya+i1ZExLeZ3mOOvl2cN7HMeaZV6rddzEZHSZLaSccfdVVi+wc2C raUR02Q03oX6HoWLLiQf81AktVIjDUUkRRgzE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=from:to:cc:subject:organization:references:date:in-reply-to :message-id:user-agent:mime-version:content-type :content-transfer-encoding; b=wC0md3LTWQW0F4fl+4ntsHvBjtUo94FI+N365B2+U3eJWgAiFTN4FFT9Bdh8un0vbw nI701q+l2Cc7tyri6ngUbn0ToanNVmtI570RvfVMh5MNInsUVbw0Fl8I1xcOg35saNJc ConZI+XWq0ONniXGsgZHSGZhMGJ7QMh4HorGg= Original-Received: by 10.204.59.132 with SMTP id l4mr324540bkh.186.1287023596400; Wed, 13 Oct 2010 19:33:16 -0700 (PDT) Original-Received: from localhost ([85.183.18.158]) by mx.google.com with ESMTPS id g8sm4927047bkg.11.2010.10.13.19.33.14 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 13 Oct 2010 19:33:15 -0700 (PDT) In-Reply-To: <8362x5u37r.fsf@aol.com> (nyc4bos@aol.com's message of "Wed, 13 Oct 2010 18:39:52 -0400") User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.2 (gnu/linux) X-Spam-Score: -2.0 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:73096 Archived-At: nyc4bos@aol.com writes: > Lars Magne Ingebrigtsen writes: > >> The old nnimap used to default to using (user-login-name) as the default >> when prompting for user names. Should auth-sources do the same? We >> could perhaps put (user-login-name) in the `M-p' slot? > > One of the features I liked and relied on about the old nnimap was that y= ou > could set the default IMAP user via: > > (setq imap-default-user "usethisuser") ; Do NOT use default `user-login-= name' > > or, preferrably: > > (setq gnus-secondary-select-methods=20 > '((nnfolder "") > (nnimap "aol" > (nnimap-address "imap.aol.com") > (nnimap-server-port 993) > (nnimap-stream ssl) > (imap-default-user "nyc4bos") > (nnir-search-engine imap)))) > > so that you could have a different default for each IMAP server. > > Could this previous feature be added with the new nnimap? > > Thanks. > I might not be understanding exactly what you mean by "different default user per imap server" but you can set different users per server using this method that I posted before. ,---- | (add-to-list 'gnus-secondary-select-methods | '(nnimap "riley" | (nnir-search-engine imap) | (nnimap-address "offlineimap") | )) |=20=20=20=20=20 | (add-to-list 'gnus-secondary-select-methods | '(nnimap "shamrockpub" | (nnir-search-engine imap) | (nnimap-address "offlineimap") | )) |=20=20=20=20=20 | (add-to-list 'gnus-secondary-select-methods | '(nnimap "friends" | (nnir-search-engine imap) | (nnimap-address "offlineimap") | )) `---- In this case the name maps to an authinfo machine with the corresponding authentication information e.g in my .authinfo.gpg ,---- | machine riley login riley password pass1 | machine friends login friends password pass2 | machine shamrockpub login shamrockpub password pass3 `---- hth, r. --=20 =E2=98=98 http://www.shamrockirishbar.com, http://splash-of-open-sauce.blog= spot.com/ http://www.richardriley.net