From: asjo@koldfront.dk (Adam Sjøgren)
To: ding@gnus.org
Subject: Re: [nnimap gmail] confused by phenomena
Date: Fri, 24 May 2013 00:11:13 +0200 [thread overview]
Message-ID: <87y5b5mjni.fsf@topper.koldfront.dk> (raw)
In-Reply-To: <87ehcxv2ue.fsf@newsguy.com>
Harry Putnam <reader@newsguy.com> writes:
> I guess I don't understand your reasoning here. Is it not possible
> for gnus to find the correct line by the uid?
The what? "uid"?!
> Nothing partial involved but an exact match on uid (LOGNAME).
"LOGNAME"?
Your authinfo looks like this:
machine imap.gmail.com login hputnam3@gmail.com password xxxxxxxx port imap
machine imap.gmail.com login harrygp3@gmail.com password xxxxxxxx port imap
And your select methods are:
(add-to-list 'gnus-secondary-select-methods '(nnimap "hputnam3"
(nnimap-address "imap.gmail.com")))
(add-to-list 'gnus-secondary-select-methods
'(nnimap "harrygp3"
(nnimap-address "imap.gmail.com")))
What I am saying is: Imagine you are a machine. How would you, from the
select method, find the correct authinfo line?
I would have guessed something like matching nnimap-address with machine
or perhaps nnimap-address+nnimap-port with machine+port, but I can't
imagine anyone implementing "Hey, let's see if the select method name is
a partial match of the authinfo login field"¹.
If you had named your select methods exactly the same as the authinfo
login fields, I could understand your guess (I wouldn't expect it to
work, but doing complete match is much more likely than partial).
I'm sorry I am sounding much more harsh than I mean to - I really do
agree that the documentation of this sucks (i.e. I couldn't find it),
but I also think that what you are expecting is... magic.
o o o
Oh, and I think Eric S Fraga's suggestion is the obvious one to try,
i.e. try this:
(add-to-list 'gnus-secondary-select-methods '(nnimap "a-nice-name"
(nnimap-address "imap.gmail.com")))
(add-to-list 'gnus-secondary-select-methods
'(nnimap "the-other"
(nnimap-address "imap.gmail.com")))
machine a-nice-name login hputnam3@gmail.com password xxxxxxxx port imap
machine the-other login harrygp3@gmail.com password xxxxxxxx port imap
Where you can replace "a-nice-name" and "the-other" with whatever you
want; I merely choose something different than "hputnam3" and "harrygp3"
to make it explicit that they don't have to have anything to do with
your email-addresses/the login fields.
Actually, I just tried that with two gmail-accounts, and it worked.
Best regards,
Adam
¹ Ok, maybe stranger things have happened, but still...
--
"Hur långt man än har kommit Adam Sjøgren
är det alltid längre kvar" asjo@koldfront.dk
next prev parent reply other threads:[~2013-05-23 22:11 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-22 10:58 Harry Putnam
2013-05-22 11:09 ` Alberto Luaces
2013-05-22 11:39 ` Harry Putnam
2013-05-23 13:00 ` Adam Sjøgren
2013-05-23 20:49 ` Harry Putnam
2013-05-23 22:11 ` Adam Sjøgren [this message]
2013-05-25 21:51 ` Harry Putnam
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=87y5b5mjni.fsf@topper.koldfront.dk \
--to=asjo@koldfront.dk \
--cc=ding@gnus.org \
/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).