* User name defaults
@ 2010-10-10 13:20 Lars Magne Ingebrigtsen
2010-10-10 14:57 ` Ted Zlatanov
2010-10-13 22:39 ` nyc4bos
0 siblings, 2 replies; 6+ messages in thread
From: Lars Magne Ingebrigtsen @ 2010-10-10 13:20 UTC (permalink / raw)
To: ding
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?
--
(domestic pets only, the antidote for overdose, milk.)
larsi@gnus.org * Lars Magne Ingebrigtsen
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: User name defaults
2010-10-10 13:20 User name defaults Lars Magne Ingebrigtsen
@ 2010-10-10 14:57 ` Ted Zlatanov
2010-10-10 17:56 ` Lars Magne Ingebrigtsen
2010-10-13 22:39 ` nyc4bos
1 sibling, 1 reply; 6+ messages in thread
From: Ted Zlatanov @ 2010-10-10 14:57 UTC (permalink / raw)
To: ding
On Sun, 10 Oct 2010 15:20:40 +0200 Lars Magne Ingebrigtsen <larsi@gnus.org> wrote:
LMI> The old nnimap used to default to using (user-login-name) as the default
LMI> when prompting for user names. Should auth-sources do the same? We
LMI> could perhaps put (user-login-name) in the `M-p' slot?
Sure.
Ted
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: User name defaults
2010-10-10 14:57 ` Ted Zlatanov
@ 2010-10-10 17:56 ` Lars Magne Ingebrigtsen
0 siblings, 0 replies; 6+ messages in thread
From: Lars Magne Ingebrigtsen @ 2010-10-10 17:56 UTC (permalink / raw)
To: ding
Ted Zlatanov <tzz@lifelogs.com> writes:
> LMI> The old nnimap used to default to using (user-login-name) as the default
> LMI> when prompting for user names. Should auth-sources do the same? We
> LMI> could perhaps put (user-login-name) in the `M-p' slot?
>
> Sure.
Ok; done.
--
(domestic pets only, the antidote for overdose, milk.)
larsi@gnus.org * Lars Magne Ingebrigtsen
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: User name defaults
2010-10-10 13:20 User name defaults Lars Magne Ingebrigtsen
2010-10-10 14:57 ` Ted Zlatanov
@ 2010-10-13 22:39 ` nyc4bos
2010-10-13 22:48 ` Lars Magne Ingebrigtsen
2010-10-14 2:33 ` Richard Riley
1 sibling, 2 replies; 6+ messages in thread
From: nyc4bos @ 2010-10-13 22:39 UTC (permalink / raw)
To: ding
Lars Magne Ingebrigtsen <larsi@gnus.org> 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 you
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
'((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.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: User name defaults
2010-10-13 22:39 ` nyc4bos
@ 2010-10-13 22:48 ` Lars Magne Ingebrigtsen
2010-10-14 2:33 ` Richard Riley
1 sibling, 0 replies; 6+ messages in thread
From: Lars Magne Ingebrigtsen @ 2010-10-13 22:48 UTC (permalink / raw)
To: ding
nyc4bos@aol.com writes:
> Could this previous feature be added with the new nnimap?
No, this sort of thing belongs in auth-source.el. (I.e., secrets api or
~/.authinfo.)
--
(domestic pets only, the antidote for overdose, milk.)
larsi@gnus.org * Lars Magne Ingebrigtsen
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: User name defaults
2010-10-13 22:39 ` nyc4bos
2010-10-13 22:48 ` Lars Magne Ingebrigtsen
@ 2010-10-14 2:33 ` Richard Riley
1 sibling, 0 replies; 6+ messages in thread
From: Richard Riley @ 2010-10-14 2:33 UTC (permalink / raw)
To: nyc4bos; +Cc: ding
nyc4bos@aol.com writes:
> Lars Magne Ingebrigtsen <larsi@gnus.org> 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 you
> 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
> '((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")
| ))
|
| (add-to-list 'gnus-secondary-select-methods
| '(nnimap "shamrockpub"
| (nnir-search-engine imap)
| (nnimap-address "offlineimap")
| ))
|
| (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.
--
☘ http://www.shamrockirishbar.com, http://splash-of-open-sauce.blogspot.com/ http://www.richardriley.net
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2010-10-14 2:33 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-10 13:20 User name defaults Lars Magne Ingebrigtsen
2010-10-10 14:57 ` Ted Zlatanov
2010-10-10 17:56 ` Lars Magne Ingebrigtsen
2010-10-13 22:39 ` nyc4bos
2010-10-13 22:48 ` Lars Magne Ingebrigtsen
2010-10-14 2:33 ` Richard Riley
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).