Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* One more authinfo file posting
@ 2005-02-09  8:57 Stefan Kamphausen
  2005-02-09 14:21 ` Reiner Steib
  0 siblings, 1 reply; 4+ messages in thread
From: Stefan Kamphausen @ 2005-02-09  8:57 UTC (permalink / raw)


Hi,

I really think that this should be in the FAQ _and_ that Gnus should
be a little bit more verbose on its decision making process.


The problem is -once again- that the authinfo file defined in my
nnimap settings won't be read.  I've tried (probably) all combinations
of:
- the name of the IMAP server (IP, FQDN, short name)
- the port (143, imap, 993, none at all)
and the matching settings in my .authinfo file ([1]).


I would really like to see some messages in the *nnimap-debug* buffer,
telling me for what it was looking in which file and what it found and
why it chose not to use such a line.


Could you give me any pointers on what I could try next or how to be
more verbose in the nnimap-debug-buffer?  I tried to read the code in
nnimap.el but I think I'd need to dive much deeper into the gnus
mechanisms to really understand it.

For my system and setup see [2].

Thanks and Regards
Stefan Kamphausen


Footnotes: 
[1] 
Actually, I use a different file because I am accessing a different
mailbox on an ms exchange server; this could be a big improvement to
the docs or the FAQs because I've hunted it for some 3 weeks until I
found that I could log in to the server with a combination of
"domain/username/short name of the mailbox".  Most important was the
short name, because the long name as displayed in outlook didn't work.
Maybe because of the spaces or the '[' or the '&' or the ']' in it's
name, I don't know.  But then, that's another story :-)

[2]  
I am using Gnus v5.10.6 on "21.4 (patch 15) \"Security Through
Obscurity\" XEmacs Lucid" with the following
gnus-secondary-select-method:

(setq gnus-secondary-select-methods
      '((nnml "")
        (nnimap ""
                (nnimap-address "mailserver")
                (nnimap-authinfo-file "~/.imap-othermailbox")
                (nnimap-list-pattern ("*"))
                (nnimap-expunge-on-close never)
                )
        ))



-- 
Stefan Kamphausen --- http://www.skamphausen.de
a blessed +42 regexp of confusion (weapon in hand)
You hit. The format string crumbles and turns to dust.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: One more authinfo file posting
  2005-02-09  8:57 One more authinfo file posting Stefan Kamphausen
@ 2005-02-09 14:21 ` Reiner Steib
  2005-02-09 14:37   ` Stefan Kamphausen
  0 siblings, 1 reply; 4+ messages in thread
From: Reiner Steib @ 2005-02-09 14:21 UTC (permalink / raw)


On Wed, Feb 09 2005, Stefan Kamphausen wrote:

> The problem is -once again- that the authinfo file defined in my
> nnimap settings won't be read.  I've tried (probably) all combinations
> of:
> - the name of the IMAP server (IP, FQDN, short name)
> - the port (143, imap, 993, none at all)
> and the matching settings in my .authinfo file ([1]).

It's hard to guess if you omit the most important part, the content of
the authinfo file (~/.imap-othermailbox).  Be sure to erase any
passwords.

> I would really like to see some messages in the *nnimap-debug* buffer,
> telling me for what it was looking in which file and what it found and
> why it chose not to use such a line.

As a quick check, use the following patch:

--8<---------------cut here---------------start------------->8---
--- nnimap.el	19 Sep 2004 19:59:10 +0200	6.71.2.6
+++ nnimap.el	09 Feb 2005 15:12:55 +0100	
@@ -722,7 +722,9 @@
 		(imap-capability 'IMAP4rev1 nnimap-server-buffer))
       (imap-close nnimap-server-buffer)
       (nnheader-report 'nnimap "Server %s is not IMAP4 compliant" server))
-    (let* ((list (gnus-parse-netrc nnimap-authinfo-file))
+    (let* ((list (progn (gnus-message 7 "Parsing authinfo file `%s'."
+				      nnimap-authinfo-file)
+			(gnus-parse-netrc nnimap-authinfo-file)))
 	   (port (if nnimap-server-port
 		     (int-to-string nnimap-server-port)
 		   "imap"))
--8<---------------cut here---------------end--------------->8---

You should have a line like "Parsing authinfo file `~/.authinfo'." in
the " *Message-Log*" buffer.

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: One more authinfo file posting
  2005-02-09 14:21 ` Reiner Steib
@ 2005-02-09 14:37   ` Stefan Kamphausen
  2005-02-09 15:27     ` Stefan Kamphausen
  0 siblings, 1 reply; 4+ messages in thread
From: Stefan Kamphausen @ 2005-02-09 14:37 UTC (permalink / raw)


Hi,

Reiner Steib <reinersteib+from-uce@imap.cc> writes:

first: thanks for the quick reply :-)

> On Wed, Feb 09 2005, Stefan Kamphausen wrote:
>
>> The problem is -once again- that the authinfo file defined in my
>> nnimap settings won't be read.  I've tried (probably) all combinations
>> of:
>> - the name of the IMAP server (IP, FQDN, short name)
>> - the port (143, imap, 993, none at all)
>> and the matching settings in my .authinfo file ([1]).
>
> It's hard to guess if you omit the most important part, the content of
> the authinfo file (~/.imap-othermailbox).  Be sure to erase any
> passwords.

well, I thought I made it clear, that I don't have /one/ file but a
plethora of combinations.

Currently I got in my ~/.authinfo:


machine news.newsserver.example login kamphausen password xxxxx force yes
machine mailserver login "windomain/skamphausen/othermailbox" password "xxxxx"


and in my ~/.imap-othermailbox I got one line for each the IP and the
FQDN of "mailserver" and one for just "mailserver" that look just like
the second line in ~/.authinfo otherwise.


 > >
>> I would really like to see some messages in the *nnimap-debug* buffer,
>> telling me for what it was looking in which file and what it found and
>> why it chose not to use such a line.
>
> As a quick check, use the following patch:
> [snip]

OK, the patch reveiled that the file that is actually read is
~/.authinfo and not the ~/.imap-othermailbox:

Parsing authinfo file `~/.authinfo'

Nevertheless, I can't see why it doesn't accept the line in there.
Maybe I'll spent another hour doing more experiments with it ;-)

Please tell me if I'm wrong, but considering the amount of postings
dealing with this problem, shouldn't there be some messages as to what
lines are examined and why they are rejected in the message-log?  The
messages could be turned off with a nnimap-i-know-my-authinfo-dealings
variable ;-)

Thanks and Regards
Stefan
-- 
Stefan Kamphausen --- http://www.skamphausen.de
a blessed +42 regexp of confusion (weapon in hand)
You hit. The format string crumbles and turns to dust.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: One more authinfo file posting
  2005-02-09 14:37   ` Stefan Kamphausen
@ 2005-02-09 15:27     ` Stefan Kamphausen
  0 siblings, 0 replies; 4+ messages in thread
From: Stefan Kamphausen @ 2005-02-09 15:27 UTC (permalink / raw)


Hi,

this is solved now.  

I've got "port imap" in my ~/.authinfo now and no nnimap-server-port
in my gnus init file anymore.  Actually it seems as if _all_ my
settings there do not take place: when I go to the server buffer (^)
and open the mailserver (RET) I get all the public folders listed even
when setting (nnimap-list-pattern ("INBOX.*")).

I found it all by heavily including debug messages in
nnimap.el/nnimap-open-connection that printed all the variables
contents (list and port were very insightful ;-).

So two items remain:
1. Why are all my settings ignored?
2. Shouldn't all that be a little bit more transparent/verbose to the
   user.  I know that any user considering Gnus can be considered a
   professional, but this was a little too hard, er? ;-)

Ad 1.: Once again the relevant part of my settings:
(setq gnus-secondary-select-methods
      '((nnml "")
        (nnimap "mailserver"
                ;; somehow these settings don't show up?
                (nnimap-address "mailserver")
                (nnimap-authinfo-file "~/.imap-othermailbox")
                (nnimap-list-pattern ("INBOX.*"))
                ;; hopefully this does ?!?!....
                (nnimap-expunge-on-close never)
                )))


Thanks and Regards
stefan

-- 
Stefan Kamphausen --- http://www.skamphausen.de
a blessed +42 regexp of confusion (weapon in hand)
You hit. The format string crumbles and turns to dust.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-02-09 15:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-09  8:57 One more authinfo file posting Stefan Kamphausen
2005-02-09 14:21 ` Reiner Steib
2005-02-09 14:37   ` Stefan Kamphausen
2005-02-09 15:27     ` Stefan Kamphausen

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).