* Re: Gnus and pgp
2009-12-02 21:41 ` Ted Zlatanov
@ 2009-12-03 0:54 ` Richard Riley
[not found] ` <mailman.12065.1259801678.2239.info-gnus-english@gnu.org>
` (3 subsequent siblings)
4 siblings, 0 replies; 17+ messages in thread
From: Richard Riley @ 2009-12-03 0:54 UTC (permalink / raw)
To: info-gnus-english
Ted Zlatanov <tzz@lifelogs.com> writes:
> On Wed, 02 Dec 2009 20:08:11 +0100 Richard Riley <rileyrgdev@gmail.com> wrote:
>
> RR> I wasn't aware you could do that! Works reliably now indicating an issue
> RR> with emacs talking to the agent.
>
> Since EPA is part of Emacs proper, you should file a bug. I know it's
> not easy to repeat the bug but it certainly seems annoying.
>
> On Wed, 02 Dec 2009 20:20:44 +0100 Richard Riley <rileyrgdev@gmail.com> wrote:
>
> RR> Works fine now with your suggestion. But now I am confused as to how to
> RR> correctly set this up. Do I still need to to set (nntp-authinfo-file
> RR> "~/.authinfo.gpg") for each secondary select method call? And if so,
> RR> where doe the epa set up come in? If you could explain how it fits
> RR> together that would be great.
>
> I set the authinfo file globally, with just auth-sources. I don't set
> it per select method. You can, but the effect will be different and I
> don't know for sure it will work correctly.
Without specifying (nntp-authinfo-file "~/.authinfo.gpg")
in my secondary methods it does not connect :-(
But just to confirm : with no such line gnus should use the
auth-sources?
>
> When you load EPG/EPA (I forget the exact package demarkation) a handler
> is set up for .gpg files *by default* (you can change that). When you
> open or save such a file, it's automatically decoded or encoded by the
> EPG/EPA handlers. All of this is outside Gnus. So specifying a .gpg
> file for auth-sources is no different than a regular file.
>
> Ted
--
^ permalink raw reply [flat|nested] 17+ messages in thread
[parent not found: <mailman.12065.1259801678.2239.info-gnus-english@gnu.org>]
* Re: Gnus and pgp
[not found] ` <mailman.12065.1259801678.2239.info-gnus-english@gnu.org>
@ 2009-12-03 18:02 ` Ted Zlatanov
2009-12-03 19:11 ` Richard Riley
0 siblings, 1 reply; 17+ messages in thread
From: Ted Zlatanov @ 2009-12-03 18:02 UTC (permalink / raw)
To: info-gnus-english
On Thu, 03 Dec 2009 01:54:04 +0100 Richard Riley <rileyrgdev@gmail.com> wrote:
RR> Ted Zlatanov <tzz@lifelogs.com> writes:
>> On Wed, 02 Dec 2009 20:08:11 +0100 Richard Riley <rileyrgdev@gmail.com> wrote:
>>
RR> I wasn't aware you could do that! Works reliably now indicating an issue
RR> with emacs talking to the agent.
>>
>> Since EPA is part of Emacs proper, you should file a bug. I know it's
>> not easy to repeat the bug but it certainly seems annoying.
>>
>> On Wed, 02 Dec 2009 20:20:44 +0100 Richard Riley <rileyrgdev@gmail.com> wrote:
>>
RR> Works fine now with your suggestion. But now I am confused as to how to
RR> correctly set this up. Do I still need to to set (nntp-authinfo-file
RR> "~/.authinfo.gpg") for each secondary select method call? And if so,
RR> where doe the epa set up come in? If you could explain how it fits
RR> together that would be great.
>>
>> I set the authinfo file globally, with just auth-sources. I don't set
>> it per select method. You can, but the effect will be different and I
>> don't know for sure it will work correctly.
RR> Without specifying (nntp-authinfo-file "~/.authinfo.gpg")
RR> in my secondary methods it does not connect :-(
RR> But just to confirm : with no such line gnus should use the
RR> auth-sources?
Yes. It works for me with just setting auth-sources so you're either
using different libraries from me or your configuration is different.
Do you know ELisp well enough to debug the problem?
Ted
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Gnus and pgp
2009-12-03 18:02 ` Ted Zlatanov
@ 2009-12-03 19:11 ` Richard Riley
0 siblings, 0 replies; 17+ messages in thread
From: Richard Riley @ 2009-12-03 19:11 UTC (permalink / raw)
To: info-gnus-english
Ted Zlatanov <tzz@lifelogs.com> writes:
> On Thu, 03 Dec 2009 01:54:04 +0100 Richard Riley <rileyrgdev@gmail.com> wrote:
>
> RR> Ted Zlatanov <tzz@lifelogs.com> writes:
>>> On Wed, 02 Dec 2009 20:08:11 +0100 Richard Riley <rileyrgdev@gmail.com> wrote:
>>>
> RR> I wasn't aware you could do that! Works reliably now indicating an issue
> RR> with emacs talking to the agent.
>>>
>>> Since EPA is part of Emacs proper, you should file a bug. I know it's
>>> not easy to repeat the bug but it certainly seems annoying.
>>>
>>> On Wed, 02 Dec 2009 20:20:44 +0100 Richard Riley <rileyrgdev@gmail.com> wrote:
>>>
> RR> Works fine now with your suggestion. But now I am confused as to how to
> RR> correctly set this up. Do I still need to to set (nntp-authinfo-file
> RR> "~/.authinfo.gpg") for each secondary select method call? And if so,
> RR> where doe the epa set up come in? If you could explain how it fits
> RR> together that would be great.
>>>
>>> I set the authinfo file globally, with just auth-sources. I don't set
>>> it per select method. You can, but the effect will be different and I
>>> don't know for sure it will work correctly.
>
> RR> Without specifying (nntp-authinfo-file "~/.authinfo.gpg")
> RR> in my secondary methods it does not connect :-(
>
> RR> But just to confirm : with no such line gnus should use the
> RR> auth-sources?
>
> Yes. It works for me with just setting auth-sources so you're either
> using different libraries from me or your configuration is different.
>
> Do you know ELisp well enough to debug the problem?
>
> Ted
I'm using the debian testing emacs 23.
I'll have a crack at debugging it some time next week.
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Gnus and pgp
2009-12-02 21:41 ` Ted Zlatanov
2009-12-03 0:54 ` Richard Riley
[not found] ` <mailman.12065.1259801678.2239.info-gnus-english@gnu.org>
@ 2009-12-07 18:54 ` Richard Riley
2009-12-22 18:08 ` Richard Riley
[not found] ` <mailman.2.1261505407.18930.info-gnus-english@gnu.org>
4 siblings, 0 replies; 17+ messages in thread
From: Richard Riley @ 2009-12-07 18:54 UTC (permalink / raw)
To: info-gnus-english
Ted Zlatanov <tzz@lifelogs.com> writes:
> On Wed, 02 Dec 2009 20:08:11 +0100 Richard Riley <rileyrgdev@gmail.com> wrote:
>
> RR> I wasn't aware you could do that! Works reliably now indicating an issue
> RR> with emacs talking to the agent.
>
> Since EPA is part of Emacs proper, you should file a bug. I know it's
> not easy to repeat the bug but it certainly seems annoying.
>
> On Wed, 02 Dec 2009 20:20:44 +0100 Richard Riley <rileyrgdev@gmail.com> wrote:
>
> RR> Works fine now with your suggestion. But now I am confused as to how to
> RR> correctly set this up. Do I still need to to set (nntp-authinfo-file
> RR> "~/.authinfo.gpg") for each secondary select method call? And if so,
> RR> where doe the epa set up come in? If you could explain how it fits
> RR> together that would be great.
>
> I set the authinfo file globally, with just auth-sources. I don't set
> it per select method. You can, but the effect will be different and I
> don't know for sure it will work correctly.
>
> When you load EPG/EPA (I forget the exact package demarkation) a handler
> is set up for .gpg files *by default* (you can change that). When you
> open or save such a file, it's automatically decoded or encoded by the
> EPG/EPA handlers. All of this is outside Gnus. So specifying a .gpg
> file for auth-sources is no different than a regular file.
>
> Ted
btw, just looked again
(setq gnus-select-method '(nnimap "mymail"
(nnimap-stream tls)
(nnimap-address "myserver.net")
(nnimap-expunge-on-close always)
(nnimap-authinfo-file "~/.authinfo.gpg")
(nnimap-nov-is-evil nil)
(nnir-search-engine imap)))
if I remove the nnimap-authinfo line it most definitely does not default
to auth-sources. it prompts me for a user and a password. my authsources
set up is
(require 'auth-source)
(require 'epa-file)
(setq epa-file-cache-passphrase-for-symmetric-encryption t) ;;VERY Important
(if (file-exists-p "~/.authinfo.gpg")
(setq auth-sources '((:source "~/.authinfo.gpg" :host t :protocol t)))
(setq auth-sources '((:source "~/.authinfo" :host t :protocol t))))
emacs 23 (with accompanying gnus).
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Gnus and pgp
2009-12-02 21:41 ` Ted Zlatanov
` (2 preceding siblings ...)
2009-12-07 18:54 ` Richard Riley
@ 2009-12-22 18:08 ` Richard Riley
[not found] ` <mailman.2.1261505407.18930.info-gnus-english@gnu.org>
4 siblings, 0 replies; 17+ messages in thread
From: Richard Riley @ 2009-12-22 18:08 UTC (permalink / raw)
To: info-gnus-english
Ted Zlatanov <tzz@lifelogs.com> writes:
> On Wed, 02 Dec 2009 20:08:11 +0100 Richard Riley <rileyrgdev@gmail.com> wrote:
>
> RR> I wasn't aware you could do that! Works reliably now indicating an issue
> RR> with emacs talking to the agent.
>
> Since EPA is part of Emacs proper, you should file a bug. I know it's
> not easy to repeat the bug but it certainly seems annoying.
>
> On Wed, 02 Dec 2009 20:20:44 +0100 Richard Riley <rileyrgdev@gmail.com> wrote:
>
> RR> Works fine now with your suggestion. But now I am confused as to how to
> RR> correctly set this up. Do I still need to to set (nntp-authinfo-file
> RR> "~/.authinfo.gpg") for each secondary select method call? And if so,
> RR> where doe the epa set up come in? If you could explain how it fits
> RR> together that would be great.
>
> I set the authinfo file globally, with just auth-sources. I don't set
> it per select method. You can, but the effect will be different and I
> don't know for sure it will work correctly.
>
> When you load EPG/EPA (I forget the exact package demarkation) a handler
> is set up for .gpg files *by default* (you can change that). When you
> open or save such a file, it's automatically decoded or encoded by the
> EPG/EPA handlers. All of this is outside Gnus. So specifying a .gpg
> file for auth-sources is no different than a regular file.
>
> Ted
With the latest emacs build in debian testing, I came back to this. It
100% does not work for me unless I specifically set the authinfo file
for each select method. My set up includes this:
,----
| (require 'epa-file)
| (epa-file-enable)
| (setq epa-file-cache-passphrase-for-symmetric-encryption t) ;;VERY Important
| (if (file-exists-p "~/.authinfo.gpg")
| (setq auth-sources '((:source "~/.authinfo.gpg" :host t :protocol t)))
| (setq auth-sources '((:source "~/.authinfo" :host t :protocol t))))
| (setq
| mml2015-encrypt-to-self t
| mml2015-cache-passphrase t
| mml2015-passphrase-cache-expiry 60000
| mml2015-verbose t)
|
|
|
| (setq gnus-select-method '(nnimap "mymail"
| (nnimap-stream tls)
| (nnimap-address "richardriley.net")
| (nnimap-expunge-on-close always)
| ;; (nnimap-authinfo-file "~/.authinfo.gpg")
| (nnimap-nov-is-evil nil)
| (nnir-search-engine imap)))
|
| (add-to-list 'gnus-secondary-select-methods
| '(nntp "motzarella"
| (nntp-address "news.eternal-september.org")
| (nntp-port-number 119)
| ;; (nntp-authinfo-file "~/.authinfo.gpg")
| )
| )
`----
With the authinfo lines commented out as above I get prompted for user
id and password for the imap server.
What am I missing?
regards
r.
^ permalink raw reply [flat|nested] 17+ messages in thread
[parent not found: <mailman.2.1261505407.18930.info-gnus-english@gnu.org>]
* Re: Gnus and pgp
[not found] ` <mailman.2.1261505407.18930.info-gnus-english@gnu.org>
@ 2010-01-05 19:28 ` Ted Zlatanov
2010-01-06 0:42 ` Richard Riley
[not found] ` <mailman.814.1263114758.18930.info-gnus-english@gnu.org>
0 siblings, 2 replies; 17+ messages in thread
From: Ted Zlatanov @ 2010-01-05 19:28 UTC (permalink / raw)
To: info-gnus-english
On Tue, 22 Dec 2009 19:08:21 +0100 Richard Riley <rileyrgdev@gmail.com> wrote:
RR> ,----
RR> | (require 'epa-file)
RR> | (epa-file-enable)
RR> | (setq epa-file-cache-passphrase-for-symmetric-encryption t) ;;VERY Important
RR> | (if (file-exists-p "~/.authinfo.gpg")
RR> | (setq auth-sources '((:source "~/.authinfo.gpg" :host t :protocol t)))
RR> | (setq auth-sources '((:source "~/.authinfo" :host t :protocol t))))
RR> | (setq
RR> | mml2015-encrypt-to-self t
RR> | mml2015-cache-passphrase t
RR> | mml2015-passphrase-cache-expiry 60000
RR> | mml2015-verbose t)
RR> |
RR> |
RR> |
RR> | (setq gnus-select-method '(nnimap "mymail"
RR> | (nnimap-stream tls)
RR> | (nnimap-address "richardriley.net")
RR> | (nnimap-expunge-on-close always)
RR> | ;; (nnimap-authinfo-file "~/.authinfo.gpg")
RR> | (nnimap-nov-is-evil nil)
RR> | (nnir-search-engine imap)))
RR> |
RR> | (add-to-list 'gnus-secondary-select-methods
RR> | '(nntp "motzarella"
RR> | (nntp-address "news.eternal-september.org")
RR> | (nntp-port-number 119)
RR> | ;; (nntp-authinfo-file "~/.authinfo.gpg")
RR> | )
RR> | )
RR> `----
RR> With the authinfo lines commented out as above I get prompted for user
RR> id and password for the imap server.
Let's debug it. Run the following in a clean (emacs -q) instance:
(require 'epa-file)
(require 'auth-source)
(require 'cl)
(epa-file-enable)
(setq auth-source-debug t ; use `message' to log messages
epa-file-cache-passphrase-for-symmetric-encryption t
auth-sources '((:source "~/.authinfo.gpg" :host t :protocol t)))
(auth-source-user-or-password "login" "richardriley.net" "imap")
What does the last call return (should be your login name)? What's in
*Messages*?
Thanks
Ted
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Gnus and pgp
2010-01-05 19:28 ` Ted Zlatanov
@ 2010-01-06 0:42 ` Richard Riley
[not found] ` <mailman.814.1263114758.18930.info-gnus-english@gnu.org>
1 sibling, 0 replies; 17+ messages in thread
From: Richard Riley @ 2010-01-06 0:42 UTC (permalink / raw)
To: info-gnus-english
Ted Zlatanov <tzz@lifelogs.com> writes:
> Let's debug it. Run the following in a clean (emacs -q) instance:
>
> (require 'epa-file)
> (require 'auth-source)
> (require 'cl)
> (epa-file-enable)
> (setq auth-source-debug t ; use `message' to log messages
> epa-file-cache-passphrase-for-symmetric-encryption t
> auth-sources '((:source "~/.authinfo.gpg" :host t :protocol t)))
> (auth-source-user-or-password "login" "richardriley.net" "imap")
>
> What does the last call return (should be your login name)? What's in
> *Messages*?
>
> Thanks
> Ted
It returns my login name ok.
*Messages* just has
auth-source-user-or-password: found (login)=(shamrock) for richardriley.net (imap)
"shamrock"
I also got prompted for a symmetric password to unlock the authinfo.gpg
Note that my login name for the remote host is, in this case, the same
as my local login id.
^ permalink raw reply [flat|nested] 17+ messages in thread
[parent not found: <mailman.814.1263114758.18930.info-gnus-english@gnu.org>]
* Re: Gnus and pgp
[not found] ` <mailman.814.1263114758.18930.info-gnus-english@gnu.org>
@ 2010-01-13 21:41 ` Ted Zlatanov
2010-01-14 0:19 ` Richard Riley
[not found] ` <mailman.1372.1263428412.18930.info-gnus-english@gnu.org>
0 siblings, 2 replies; 17+ messages in thread
From: Ted Zlatanov @ 2010-01-13 21:41 UTC (permalink / raw)
To: info-gnus-english
On Wed, 06 Jan 2010 01:42:48 +0100 Richard Riley <rileyrgdev@gmail.com> wrote:
RR> Ted Zlatanov <tzz@lifelogs.com> writes:
>> Let's debug it. Run the following in a clean (emacs -q) instance:
>>
>> (require 'epa-file)
>> (require 'auth-source)
>> (require 'cl)
>> (epa-file-enable)
>> (setq auth-source-debug t ; use `message' to log messages
>> epa-file-cache-passphrase-for-symmetric-encryption t
>> auth-sources '((:source "~/.authinfo.gpg" :host t :protocol t)))
>> (auth-source-user-or-password "login" "richardriley.net" "imap")
>>
>> What does the last call return (should be your login name)? What's in
>> *Messages*?
RR> It returns my login name ok.
RR> *Messages* just has
RR> auth-source-user-or-password: found (login)=(shamrock) for richardriley.net (imap)
RR> "shamrock"
RR> I also got prompted for a symmetric password to unlock the authinfo.gpg
RR> Note that my login name for the remote host is, in this case, the same
RR> as my local login id.
If this works, it should work for all other IMAP cases as well. Look at
nnimap.el, it has the same call in nnimap-open-connection. Can you try
the auth-source-user-or-password call inside your regular sessions
(instead of `emacs -q'), where auth-source.el doesn't work for you? Is
there something you see that might hint what the problem is?
Ted
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Gnus and pgp
2010-01-13 21:41 ` Ted Zlatanov
@ 2010-01-14 0:19 ` Richard Riley
[not found] ` <mailman.1372.1263428412.18930.info-gnus-english@gnu.org>
1 sibling, 0 replies; 17+ messages in thread
From: Richard Riley @ 2010-01-14 0:19 UTC (permalink / raw)
To: info-gnus-english
Ted Zlatanov <tzz@lifelogs.com> writes:
> On Wed, 06 Jan 2010 01:42:48 +0100 Richard Riley <rileyrgdev@gmail.com> wrote:
>
> RR> Ted Zlatanov <tzz@lifelogs.com> writes:
>>> Let's debug it. Run the following in a clean (emacs -q) instance:
>>>
>>> (require 'epa-file)
>>> (require 'auth-source)
>>> (require 'cl)
>>> (epa-file-enable)
>>> (setq auth-source-debug t ; use `message' to log messages
>>> epa-file-cache-passphrase-for-symmetric-encryption t
>>> auth-sources '((:source "~/.authinfo.gpg" :host t :protocol t)))
>>> (auth-source-user-or-password "login" "richardriley.net" "imap")
>>>
>>> What does the last call return (should be your login name)? What's in
>>> *Messages*?
>
> RR> It returns my login name ok.
>
> RR> *Messages* just has
>
> RR> auth-source-user-or-password: found (login)=(shamrock) for richardriley.net (imap)
> RR> "shamrock"
>
> RR> I also got prompted for a symmetric password to unlock the authinfo.gpg
>
> RR> Note that my login name for the remote host is, in this case, the same
> RR> as my local login id.
>
> If this works, it should work for all other IMAP cases as well. Look at
> nnimap.el, it has the same call in nnimap-open-connection. Can you try
> the auth-source-user-or-password call inside your regular sessions
> (instead of `emacs -q'), where auth-source.el doesn't work for you? Is
> there something you see that might hint what the problem is?
>
> Ted
The issue was with nntp selects not other IMAPS as recall.
--
Google Talk : rileyrgdev@googlemail.com http://www.google.com/talk
^ permalink raw reply [flat|nested] 17+ messages in thread
[parent not found: <mailman.1372.1263428412.18930.info-gnus-english@gnu.org>]
* Re: Gnus and pgp
[not found] ` <mailman.1372.1263428412.18930.info-gnus-english@gnu.org>
@ 2010-01-14 14:22 ` Ted Zlatanov
2010-01-14 15:36 ` Richard Riley
[not found] ` <mailman.1413.1263483604.18930.info-gnus-english@gnu.org>
0 siblings, 2 replies; 17+ messages in thread
From: Ted Zlatanov @ 2010-01-14 14:22 UTC (permalink / raw)
To: info-gnus-english
On Thu, 14 Jan 2010 01:19:38 +0100 Richard Riley <rileyrgdev@gmail.com> wrote:
RR> Ted Zlatanov <tzz@lifelogs.com> writes:
>> On Wed, 06 Jan 2010 01:42:48 +0100 Richard Riley <rileyrgdev@gmail.com> wrote:
>>
RR> Ted Zlatanov <tzz@lifelogs.com> writes:
>>>> Let's debug it. Run the following in a clean (emacs -q) instance:
>>>>
>>>> (require 'epa-file)
>>>> (require 'auth-source)
>>>> (require 'cl)
>>>> (epa-file-enable)
>>>> (setq auth-source-debug t ; use `message' to log messages
>>>> epa-file-cache-passphrase-for-symmetric-encryption t
>>>> auth-sources '((:source "~/.authinfo.gpg" :host t :protocol t)))
>>>> (auth-source-user-or-password "login" "richardriley.net" "imap")
>>>>
>>>> What does the last call return (should be your login name)? What's in
>>>> *Messages*?
>>
RR> It returns my login name ok.
>>
RR> *Messages* just has
>>
RR> auth-source-user-or-password: found (login)=(shamrock) for richardriley.net (imap)
RR> "shamrock"
>>
RR> I also got prompted for a symmetric password to unlock the authinfo.gpg
>>
RR> Note that my login name for the remote host is, in this case, the same
RR> as my local login id.
>>
>> If this works, it should work for all other IMAP cases as well. Look at
>> nnimap.el, it has the same call in nnimap-open-connection. Can you try
>> the auth-source-user-or-password call inside your regular sessions
>> (instead of `emacs -q'), where auth-source.el doesn't work for you? Is
>> there something you see that might hint what the problem is?
>>
>> Ted
RR> The issue was with nntp selects not other IMAPS as recall.
Can you try the call with "nntp" as the protocol and the right host name?
Ted
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Gnus and pgp
2010-01-14 14:22 ` Ted Zlatanov
@ 2010-01-14 15:36 ` Richard Riley
[not found] ` <mailman.1413.1263483604.18930.info-gnus-english@gnu.org>
1 sibling, 0 replies; 17+ messages in thread
From: Richard Riley @ 2010-01-14 15:36 UTC (permalink / raw)
To: info-gnus-english
Ted Zlatanov <tzz@lifelogs.com> writes:
> On Thu, 14 Jan 2010 01:19:38 +0100 Richard Riley <rileyrgdev@gmail.com> wrote:
>
> RR> Ted Zlatanov <tzz@lifelogs.com> writes:
>>> On Wed, 06 Jan 2010 01:42:48 +0100 Richard Riley <rileyrgdev@gmail.com> wrote:
>>>
> RR> Ted Zlatanov <tzz@lifelogs.com> writes:
>>>>> Let's debug it. Run the following in a clean (emacs -q) instance:
>>>>>
>>>>> (require 'epa-file)
>>>>> (require 'auth-source)
>>>>> (require 'cl)
>>>>> (epa-file-enable)
>>>>> (setq auth-source-debug t ; use `message' to log messages
>>>>> epa-file-cache-passphrase-for-symmetric-encryption t
>>>>> auth-sources '((:source "~/.authinfo.gpg" :host t :protocol t)))
>>>>> (auth-source-user-or-password "login" "richardriley.net" "imap")
>>>>>
>>>>> What does the last call return (should be your login name)? What's in
>>>>> *Messages*?
>>>
> RR> It returns my login name ok.
>>>
> RR> *Messages* just has
>>>
> RR> auth-source-user-or-password: found (login)=(shamrock) for richardriley.net (imap)
> RR> "shamrock"
>>>
> RR> I also got prompted for a symmetric password to unlock the authinfo.gpg
>>>
> RR> Note that my login name for the remote host is, in this case, the same
> RR> as my local login id.
>>>
>>> If this works, it should work for all other IMAP cases as well. Look at
>>> nnimap.el, it has the same call in nnimap-open-connection. Can you try
>>> the auth-source-user-or-password call inside your regular sessions
>>> (instead of `emacs -q'), where auth-source.el doesn't work for you? Is
>>> there something you see that might hint what the problem is?
>>>
>>> Ted
>
> RR> The issue was with nntp selects not other IMAPS as recall.
>
> Can you try the call with "nntp" as the protocol and the right host name?
>
> Ted
It returns nil.
--
Google Talk : rileyrgdev@googlemail.com http://www.google.com/talk
^ permalink raw reply [flat|nested] 17+ messages in thread
[parent not found: <mailman.1413.1263483604.18930.info-gnus-english@gnu.org>]
* Re: Gnus and pgp
[not found] ` <mailman.1413.1263483604.18930.info-gnus-english@gnu.org>
@ 2010-01-15 18:37 ` Ted Zlatanov
0 siblings, 0 replies; 17+ messages in thread
From: Ted Zlatanov @ 2010-01-15 18:37 UTC (permalink / raw)
To: info-gnus-english
On Thu, 14 Jan 2010 16:36:58 +0100 Richard Riley <rileyrgdev@gmail.com> wrote:
RR> Ted Zlatanov <tzz@lifelogs.com> writes:
>> On Thu, 14 Jan 2010 01:19:38 +0100 Richard Riley <rileyrgdev@gmail.com> wrote:
>>
RR> Ted Zlatanov <tzz@lifelogs.com> writes:
>>>> On Wed, 06 Jan 2010 01:42:48 +0100 Richard Riley <rileyrgdev@gmail.com> wrote:
>>>>
RR> Ted Zlatanov <tzz@lifelogs.com> writes:
>>>>>> Let's debug it. Run the following in a clean (emacs -q) instance:
>>>>>>
>>>>>> (require 'epa-file)
>>>>>> (require 'auth-source)
>>>>>> (require 'cl)
>>>>>> (epa-file-enable)
>>>>>> (setq auth-source-debug t ; use `message' to log messages
>>>>>> epa-file-cache-passphrase-for-symmetric-encryption t
>>>>>> auth-sources '((:source "~/.authinfo.gpg" :host t :protocol t)))
>>>>>> (auth-source-user-or-password "login" "richardriley.net" "imap")
>>>>>>
>>>>>> What does the last call return (should be your login name)? What's in
>>>>>> *Messages*?
>>>>
RR> It returns my login name ok.
>>>>
RR> *Messages* just has
>>>>
RR> auth-source-user-or-password: found (login)=(shamrock) for richardriley.net (imap)
RR> "shamrock"
>>>>
RR> I also got prompted for a symmetric password to unlock the authinfo.gpg
>>>>
RR> Note that my login name for the remote host is, in this case, the same
RR> as my local login id.
>>>>
>>>> If this works, it should work for all other IMAP cases as well. Look at
>>>> nnimap.el, it has the same call in nnimap-open-connection. Can you try
>>>> the auth-source-user-or-password call inside your regular sessions
>>>> (instead of `emacs -q'), where auth-source.el doesn't work for you? Is
>>>> there something you see that might hint what the problem is?
>>>>
>>>> Ted
>>
RR> The issue was with nntp selects not other IMAPS as recall.
>>
>> Can you try the call with "nntp" as the protocol and the right host name?
OK, so your authinfo file doesn't match NNTP. Can you insert a line
without a port for that server and see if it returns the user name?
IOW,
machine richardriley.net login shamrock password XYZ
should specify that for richardriley.net, login "shamrock" is to be used
for all protocols. If that works, but
machine richardriley.net login shamrock password XYZ port nntp
does not work for the call
(auth-source-user-or-password "login" "richardriley.net" "nntp")
then we may have a bug I haven't seen before.
For all this testing, please make sure you're in emacs -q with only the
config above loaded.
Thanks
Ted
^ permalink raw reply [flat|nested] 17+ messages in thread