[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Gnus and pgp

From: Ted Zlatanov
Subject: Re: Gnus and pgp
Date: Fri, 15 Jan 2010 12:37:07 -0600
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1.90 (gnu/linux)

On Thu, 14 Jan 2010 16:36:58 +0100 Richard Riley <> wrote: 

RR> Ted Zlatanov <> writes:
>> On Thu, 14 Jan 2010 01:19:38 +0100 Richard Riley <> 
>> wrote: 
RR> Ted Zlatanov <> writes:
>>>> On Wed, 06 Jan 2010 01:42:48 +0100 Richard Riley <> 
>>>> wrote: 
RR> Ted Zlatanov <> 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" "" "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 
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?

machine login shamrock password XYZ

should specify that for, login "shamrock" is to be used
for all protocols.  If that works, but 

machine login shamrock password XYZ port nntp

does not work for the call 

(auth-source-user-or-password "login" "" "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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]