Gnus development mailing list
 help / color / mirror / Atom feed
* IMAP problems
@ 2003-09-19 17:24 Frank Schmitt
  2003-09-19 17:46 ` Simon Josefsson
  0 siblings, 1 reply; 17+ messages in thread
From: Frank Schmitt @ 2003-09-19 17:24 UTC (permalink / raw)


Hello

I've problems connecting to an IMAP server with Gnus. It seems
something goes wrong when authenticating with the server, but what?

Here's what I have in my .gnus:

(add-to-list 'gnus-secondary-select-methods 
                         '(nnimap "mail1"
                                  (nnimap-address "mail1.kens.com")))

When Gnus starts, the connection to the server isn't established, if I
go to server buffer status is set to "denied".

Here's what *imap-log* says
 
* OK Courier-IMAP ready. Copyright 1998-2001 Double Precision, Inc.  See COPYING for distribution information.

1 CAPABILITY

* CAPABILITY IMAP4rev1 CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT STARTTLS

1 OK CAPABILITY completed

* OK Courier-IMAP ready. Copyright 1998-2001 Double Precision, Inc.  See COPYING for distribution information.

1 STARTTLS

1 OK Begin SSL/TLS negotation now.

2 LOGOUT

* BYE Courier-IMAP server shutting down

2 OK LOGOUT completed

2 CAPABILITY

3 LOGIN "myusername" ""


and here the contents of *imap-debug*:

======================================================================
1 -> imap-opened: buffer=" *nnimap* mail1"
1 <- imap-opened: nil
======================================================================
1 -> imap-open: server="mail1.kens.com" port=nil stream=nil auth=nil buffer=" *nnimap* mail1"
| 2 -> imap-opened: buffer=" *nnimap* mail1"
| 2 <- imap-opened: nil
| 2 -> imap-open-1: buffer=" *nnimap* mail1"
| | 3 -> imap-network-open: name="imap" buffer=" *nnimap* mail1" server="mail1.kens.com" port=nil
| | | 4 -> imap-parse-greeting: 
| | | 4 <- imap-parse-greeting: nil
| | | 4 -> imap-parse-greeting: 
| | | 4 <- imap-parse-greeting: nonauth
| | 3 <- imap-network-open: #<process imap>
| 2 <- imap-open-1: #<process imap>
| 2 -> imap-capability: identifier=AUTH=GSSAPI buffer=" *nnimap* mail1"
| | 3 -> imap-send-command-wait: command="CAPABILITY" buffer=nil
| | | 4 -> imap-send-command: command="CAPABILITY" buffer=nil
| | | | 5 -> imap-send-command-1: cmdstr="1 CAPABILITY"
| | | | 5 <- imap-send-command-1: nil
| | | 4 <- imap-send-command: 1
| | | 4 -> imap-wait-for-tag: tag=1 buffer=nil
| | | | 5 -> imap-arrival-filter: proc=#<process imap> string="* CAPABILITY IMAP4rev1 CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT STARTTLS

1 OK CAPABILITY completed

"
| | | | | 6 -> imap-find-next-line: 
| | | | | 6 <- imap-find-next-line: 113
| | | | | 6 -> imap-parse-response: 
| | | | | | 7 -> imap-parse-resp-text: 
| | | | | | | 8 -> imap-parse-resp-text-code: 
| | | | | | | 8 <- imap-parse-resp-text-code: nil
| | | | | | 7 <- imap-parse-resp-text: nil
| | | | | 6 <- imap-parse-response: nil
| | | | | 6 -> imap-find-next-line: 
| | | | | 6 <- imap-find-next-line: 98
| | | | | 6 -> imap-parse-response: 
| | | | | 6 <- imap-parse-response: (IMAP4REV1 CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT STARTTLS)
| | | | | 6 -> imap-find-next-line: 
| | | | | 6 <- imap-find-next-line: 28
| | | | | 6 -> imap-parse-response: 
| | | | | | 7 -> imap-parse-resp-text: 
| | | | | | | 8 -> imap-parse-resp-text-code: 
| | | | | | | 8 <- imap-parse-resp-text-code: nil
| | | | | | 7 <- imap-parse-resp-text: nil
| | | | | 6 <- imap-parse-response: nil
| | | | | 6 -> imap-find-next-line: 
| | | | | 6 <- imap-find-next-line: nil
| | | | 5 <- imap-arrival-filter: nil
| | | 4 <- imap-wait-for-tag: OK
| | 3 <- imap-send-command-wait: OK
| 2 <- imap-capability: nil
| 2 -> imap-capability: identifier=AUTH=KERBEROS_V4 buffer=" *nnimap* mail1"
| 2 <- imap-capability: nil
| 2 -> imap-capability: identifier=STARTTLS buffer=" *nnimap* mail1"
| 2 <- imap-capability: (STARTTLS)
| 2 -> imap-open-1: buffer=#<buffer  *temp*>
| | 3 -> imap-parse-greeting: 
| | 3 <- imap-parse-greeting: nil
| | 3 -> imap-parse-greeting: 
| | 3 <- imap-parse-greeting: nonauth
| | 3 -> imap-send-command-wait: command="STARTTLS" buffer=nil
| | | 4 -> imap-send-command: command="STARTTLS" buffer=nil
| | | | 5 -> imap-send-command-1: cmdstr="1 STARTTLS"
| | | | 5 <- imap-send-command-1: nil
| | | 4 <- imap-send-command: 1
| | | 4 -> imap-wait-for-tag: tag=1 buffer=nil
| | | | 5 -> imap-arrival-filter: proc=#<process imap<1>> string="1 OK Begin SSL/TLS negotation now.

"
| | | | | 6 -> imap-find-next-line: 
| | | | | 6 <- imap-find-next-line: 113
| | | | | 6 -> imap-parse-response: 
| | | | | | 7 -> imap-parse-resp-text: 
| | | | | | | 8 -> imap-parse-resp-text-code: 
| | | | | | | 8 <- imap-parse-resp-text-code: nil
| | | | | | 7 <- imap-parse-resp-text: nil
| | | | | 6 <- imap-parse-response: nil
| | | | | 6 -> imap-find-next-line: 
| | | | | 6 <- imap-find-next-line: 37
| | | | | 6 -> imap-parse-response: 
| | | | | | 7 -> imap-parse-resp-text: 
| | | | | | | 8 -> imap-parse-resp-text-code: 
| | | | | | | 8 <- imap-parse-resp-text-code: nil
| | | | | | 7 <- imap-parse-resp-text: nil
| | | | | 6 <- imap-parse-response: nil
| | | | | 6 -> imap-find-next-line: 
| | | | | 6 <- imap-find-next-line: nil
| | | | 5 <- imap-arrival-filter: nil
| | | 4 <- imap-wait-for-tag: OK
| | 3 <- imap-send-command-wait: OK
| 2 <- imap-open-1: #<process imap<1>>
| 2 -> imap-close: buffer=" *nnimap* mail1"
| | 3 -> imap-opened: buffer=nil
| | 3 <- imap-opened: (open run)
| | 3 -> imap-send-command-wait: command="LOGOUT" buffer=nil
| | | 4 -> imap-send-command: command="LOGOUT" buffer=nil
| | | | 5 -> imap-send-command-1: cmdstr="2 LOGOUT"
| | | | 5 <- imap-send-command-1: nil
| | | 4 <- imap-send-command: 2
| | | 4 -> imap-wait-for-tag: tag=2 buffer=nil
| | | | 5 -> imap-arrival-filter: proc=#<process imap> string="* BYE Courier-IMAP server shutting down

2 OK LOGOUT completed

"
| | | | | 6 -> imap-find-next-line: 
| | | | | 6 <- imap-find-next-line: 42
| | | | | 6 -> imap-parse-response: 
| | | | | | 7 -> imap-parse-resp-text: 
| | | | | | | 8 -> imap-parse-resp-text-code: 
| | | | | | | 8 <- imap-parse-resp-text-code: nil
| | | | | | 7 <- imap-parse-resp-text: nil
| | | | | 6 <- imap-parse-response: nil
| | | | | 6 -> imap-find-next-line: 
| | | | | 6 <- imap-find-next-line: 24
| | | | | 6 -> imap-parse-response: 
| | | | | | 7 -> imap-parse-resp-text: 
| | | | | | | 8 -> imap-parse-resp-text-code: 
| | | | | | | 8 <- imap-parse-resp-text-code: nil
| | | | | | 7 <- imap-parse-resp-text: nil
| | | | | 6 <- imap-parse-response: nil
| | | | | 6 -> imap-find-next-line: 
| | | | | 6 <- imap-find-next-line: nil
| | | | 5 <- imap-arrival-filter: nil
| | | 4 <- imap-wait-for-tag: OK
| | 3 <- imap-send-command-wait: OK
| 2 <- imap-close: t
| 2 -> imap-opened: buffer=" *nnimap* mail1"
| 2 <- imap-opened: (run)

-- 
Did you ever realize how much text fits in eighty columns? If you now consider
that a signature usually consists of up to four lines, this gives you enough
space to spread a tremendous amount of information with your messages. So seize
this opportunity and don't waste your signature with bullshit nobody will read.



^ permalink raw reply	[flat|nested] 17+ messages in thread
* IMAP Problems
@ 2002-04-10 22:00 Niranjan Rao
  2002-04-10 22:05 ` Paul Jarc
  2002-04-11  7:57 ` Simon Josefsson
  0 siblings, 2 replies; 17+ messages in thread
From: Niranjan Rao @ 2002-04-10 22:00 UTC (permalink / raw)


Hello,

gnus-version Gnus v5.9.0
emacs-version 21.2.1 on Windows 2K Server

I tried connecting to MS Exchange IMAP server using
following settings

(gnus-select-method (quote (nnimap "AAMAIN"
(nnimap-authenticator login) (nnimap-stream ssl)
(nnimap-server-port 143) (nnimap-list-pattern ("INBOX")))))

and

(gnus-secondary-select-methods (quote ((nnimap "AAMAIN"
(nnimap-authenticator anonymous) (nnimap-stream SSL)
(nnimap-list-pattern ("Inbox"))))))

through customization. The buffers for logging are also
activated using 
(setq imap-log "*imap-log*")
(setq imap-debug "*imap-debug*")
(setq nnimap-debug "*nnimap-debug*")

The log seems to show that gnus is able to connect to the
server though I never saw *imap-log* buffer being
created. As suggested in some of the articles I searched
through google, I tried imap-open function as follows

(imap-open "AAMAIN")
it returns 
" *imap* AAMAIN:0"

My problem is after showing the message of executing openssl
program gnus/emacs just hangs. It of course comes out after
hitting Ctrl-G. I have verified server name and port number
as Outlook express is able to connect to the imap server
using the same port and log on using secure password
authentication checked.

Am I doing something wrong ? I'll be glad to
post contents from any debug buffers if some one wants to
examine it.

-- Niranjan

------------------------------------------------------------
If you're in a vehicle going the speed of light, what happens
when you turn on the headlights?
------------------------------------------------------------




^ permalink raw reply	[flat|nested] 17+ messages in thread
* IMAP problems.
@ 1996-11-11 15:21 visigoth
  1996-11-11 22:15 ` David Moore
  0 siblings, 1 reply; 17+ messages in thread
From: visigoth @ 1996-11-11 15:21 UTC (permalink / raw)


Okay.  I just ran into the latest really major problem with Gnus doing
IMAP.  The most convenient thing for Gnus to use as the message number
for these messages is their UID--the problem is, UID (and UIDVALIDITY,
which is a number that's used to verify that the UIDs are the same as
the last time you looked, i.e. the group wasn't moved and then
recreated or something) are defined by the IMAP spec as 32bit
integers.  And, in fact, they -are- 32-bit integers.  And the UIDs
don't start at one, they start higher...  In fact, in my IMAP INBOX
right now, all the UIDs are outside the range of integers that Emacs
can manipulate.

This isn't good.

So--there are a couple of ways I can see of dealing with this.  One is
to squirrel away the UID of the first message of a folder the first
time you look at it--this number would be stored either as a string or
as a float, since neither of these are limited to 32 bit integers.
When a message is fetched or received from the server, the UID is read
as a float or a string and then added/substracted from the "base" UID
that was originally read (UIDs are guaranteed to grow over time.
Usually grow by 1 per message in folder.) depending on whether it's
going out or coming in.

This is kind of icky.  It means that we have to keep an extra number
around for the group (not too hard), and that we need to mangle every
message number as it goes from Emacs <-> IMAP.  If it's a string, we
need to do our own math.  If it's a float, we need to do float math.

Any other ideas about how to deal with this?

John.


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

end of thread, other threads:[~2003-09-21 21:24 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-19 17:24 IMAP problems Frank Schmitt
2003-09-19 17:46 ` Simon Josefsson
2003-09-19 20:21   ` Frank Schmitt
2003-09-19 21:19     ` Simon Josefsson
2003-09-19 20:24   ` Frank Schmitt
2003-09-19 21:23     ` Simon Josefsson
2003-09-20 10:50       ` Frank Schmitt
2003-09-20 16:27         ` STARTTLS rewrite (was: Re: IMAP problems) Simon Josefsson
2003-09-21  1:16           ` STARTTLS rewrite Simon Josefsson
2003-09-21 21:16           ` Frank Schmitt
2003-09-21 21:24             ` Simon Josefsson
  -- strict thread matches above, loose matches on Subject: below --
2002-04-10 22:00 IMAP Problems Niranjan Rao
2002-04-10 22:05 ` Paul Jarc
2002-04-11  7:57 ` Simon Josefsson
1996-11-11 15:21 IMAP problems visigoth
1996-11-11 22:15 ` David Moore
1996-11-12  0:05   ` visigoth

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