On Thu, 14 Jan 2010 16:36:58 +0100 Richard Riley <[email protected]> wrote:
RR> Ted Zlatanov <[email protected]> writes: >> On Thu, 14 Jan 2010 01:19:38 +0100 Richard Riley <[email protected]> >> wrote: >> RR> Ted Zlatanov <[email protected]> writes: >>>> On Wed, 06 Jan 2010 01:42:48 +0100 Richard Riley <[email protected]> >>>> wrote: >>>> RR> Ted Zlatanov <[email protected]> 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 _______________________________________________ info-gnus-english mailing list [email protected] http://lists.gnu.org/mailman/listinfo/info-gnus-english
