From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/10285 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.gnus.user Subject: Re: Automatically authenticating at local imap server Date: Sun, 03 Feb 2008 12:00:11 +0100 Organization: T-Online Message-ID: References: <87k5lmidfy.fsf@member.fsf.org> Reply-To: Reiner Steib NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1202038846 11324 80.91.229.12 (3 Feb 2008 11:40:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 3 Feb 2008 11:40:46 +0000 (UTC) To: info-gnus-english@gnu.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Sun Feb 03 12:41:06 2008 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JLdDd-0007MD-JD for gegu-info-gnus-english@m.gmane.org; Sun, 03 Feb 2008 12:41:05 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JLdDB-00068Z-Nn for gegu-info-gnus-english@m.gmane.org; Sun, 03 Feb 2008 06:40:37 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsmm00.sul.t-online.de!t-online.de!news.t-online.com!not-for-mail Original-Newsgroups: gnu.emacs.gnus Original-Lines: 53 Original-X-Trace: news.t-online.com 1202036450 02 21018 BOV31QNLcj2+t-w 080203 11:00:50 Original-X-Complaints-To: usenet-abuse@t-online.de X-ID: ZkQfSUZJge-srHayObzG9D8fs8AvlXjHkU63FnnAJUDcRswIAoEe6v X-Face: /U7=m^"/-Dn61mAl{g9e3>\G5Tp,oEX|V)g2I1hBk\ML; )7A?6cmB-y7y?'NA^J<=oz7syB =(McAwIHgLX!.B?R3X}98d@?>CrT094KLWh]WU4gDpnL/")MS(XoQTv`Oq225uL>+; CpPXo$N5e>N> $tPd-gbB^F{gQS#1ase]XO~D4p4M"3+F-7~u]dy3I?Pb8RO*H-EFeWDUf?Rf, d]pv\Jvh2Cht!A=im yKAS2Z%Ao^;}W/qzMvMm Mail-Copies-To: nobody User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:jMYnV7YUOsW7olg06DYD0HdLDHA= Original-Xref: shelby.stanford.edu gnu.emacs.gnus:80496 X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.gnus.user:10285 Archived-At: On Sun, Feb 03 2008, Tassilo Horn wrote: > Everytime I start Gnus it asks me how to logon at the local IMAP server, > but instead I want that it uses the username and password that are in my > ~/.authinfo. > > Here's the Gnus side of the configuration: > > ,----[ ~/.gnus.el ] > | (require 'nnir) > | (add-to-list 'gnus-secondary-select-methods > | '(nnimap "Fastmail" > | (nnimap-address "localhost") > | (nnimap-server-port 143) If you use a standard port, you can omit it here. > | (nnimap-stream network) > | (nnimap-authenticator login) > | (nnir-search-engine imap))) > `---- > > In my ~/.authinfo I have: > > ,----[ ~/.authinfo ] > | machine Fastmail login heimdall password XXX port imap force yes > | machine localhost login heimdall password XXX port imap force yes > `---- I don't see anything obvious. (Though one of the entries seem redundant, "port imap" as well, IIRC.) So I'd suggest to edebug `imap-interactive-login' and `nnimap-open-connection'. In a nutshell (see (info "(elisp)Edebug") for details): - Require imap and nnimap. Put the cursor inside the function definitions in imap.el/nnimap.el and press `C-u C-M-x'. - Repeat the problem. Step through the code using `SPC' or `n' and watch the results of the evaluated expressions in the echo area (or *Messages*). - You may also evaluate expressions using `e' (including let-bound variable, etc.) and jump to a specified location: (info "(elisp)Edebug Eval"), (info "(elisp)Jumping"), ... Bye, Reiner. -- ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/