Gnus development mailing list
 help / color / mirror / Atom feed
* nnimap compatibility issues (UTF-7, msg count, SEARCH vs. group select)
@ 2003-05-13  0:24 Matthias Andree
  2003-05-13 17:47 ` nnimap compatibility issues (UTF-7, msg count, SEARCH vs. group Dave Love
  0 siblings, 1 reply; 9+ messages in thread
From: Matthias Andree @ 2003-05-13  0:24 UTC (permalink / raw)


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=utf-8, Size: 3698 bytes --]

Hi,

I have some compatibility issues with using imap.web.de. First of all:
Mozilla 1.3 and Sylpheed 0.8.11claws get it right, so it seems doable
with some effort. Whether it's worth it, is up to others to decide, but
I'll report it all the same, I have IMAP traces and profile or backtrace
where needed.

I don't speak IMAP4r1 very well, but I hope I got the relevant
sections. I will refine my logs if needed.

Contents:

1. UTF-7 decoding mangled
2. message count hosed
3. selecting group fails and hogs CPU to 100% load

--------------------

1. UTF-7 decoding mangled

Here's the IMAP excerpt:

1 CAPABILITY
* CAPABILITY IMAP4 IMAP4rev1 LITERAL+ UIDPLUS X-NETSCAPE
1 OK Completed
2 LOGIN "hohohoimnottellingyou" "youdlovetoknow"
2 OK User logged in
3 LIST "" "*%"
* LIST (\Noinferiors ) "/" "Trash"
* LIST (\Noinferiors ) "/" "Unerw&APw-nscht"
...
3 OK Completed

The "Unerw&APw-nscht" string is misdisplayed in the server buffer, it
prints as "Unerw.ünscht"; UTF-7 decoding is on. However, it appears
correctly as "Unerwünscht" in other client software, namely Sylpheed
0.8.11claws and Mozilla 1.3. Just in case: CVS 5.10.x Gnus, emacs 21.3.

--------------------

2. Next, the INBOX message count in the server buffer is apparently hosed:

K      0: Gesendet
 107062715: INBOX
K      0: Papierkorb

Evidently, the INBOX has only 365 messages.

18 EXAMINE "INBOX"
* 365 EXISTS
* OK [UNSEEN 7] Message 359 is first unseen
* OK [PERMANENTFLAGS (\Deleted \Seen \Answered)]
* OK [UIDVALIDITY 1]
* FLAGS (\Answered \Flagged \Deleted \Seen \Draft)
18 OK Completed [READ-ONLY]
19 FETCH 1,* UID
* 1 FETCH (UID 643933627)
* 365 FETCH (UID 700320820)
19 OK Completed

--------------------

3. Group selection fails with 100% CPU loop (the server is agentized, FWIW):

26 SELECT "INBOX"
* 365 EXISTS
* OK [UNSEEN 7] Message 359 is first unseen
* OK [PERMANENTFLAGS (\Deleted \Seen \Answered)]
* OK [UIDVALIDITY 1]
* FLAGS (\Answered \Flagged \Deleted \Seen \Draft)
26 OK Completed [READ-WRITE]
27 UID SEARCH UNSEEN UNDELETED
27 BAD Function not implemented
28 UID SEARCH SEEN
28 BAD Function not implemented
...

Gnus then tries SEARCH ANSWERED, SEARCH RECENT (all BAD), again FETCH,
and these four SEARCH commands again and then goes into a 100% CPU
loop. Here's the ELP trace:

Function Name                            Call Count  Elapsed Time  Average Time
=======================================  ==========  ============  ============
nnimap-request-group                     2           16.718578     8.359289
nnimap-request-update-info-internal      2           16.645619     8.3228095
nnimap-find-minmax-uid                   1           0.071981      0.071981
nnimap-mark-permanent-p                  28          0.001458      5.207...e-05
nnimap-possibly-change-group             4           0.00096       0.00024
nnimap-mark-to-flag                      30          0.0006149999  2.049...e-05
nnimap-mark-to-flag-1                    30          0.0001290000  4.300...e-06
nnimap-server-opened                     2           7.8e-05       3.9e-05

And here's a backtrace, just in case:

Debugger entered--Lisp error: (quit)
  gnus-list-of-unread-articles("nnimap+imap.web.de:INBOX")
  gnus-select-newsgroup("nnimap+imap.web.de:INBOX" nil nil)
  gnus-summary-read-group-1("nnimap+imap.web.de:INBOX" nil nil nil nil nil)
  gnus-summary-read-group("nnimap+imap.web.de:INBOX" nil nil nil nil nil nil)
  gnus-group-read-group(nil)
  gnus-mouse-pick-group((mouse-2 (#<window 20 on *Group*> 37 (324 . 13) 56961915)))
  call-interactively(gnus-mouse-pick-group)
...

-- 
Matthias Andree



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

end of thread, other threads:[~2003-05-29 17:52 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-13  0:24 nnimap compatibility issues (UTF-7, msg count, SEARCH vs. group select) Matthias Andree
2003-05-13 17:47 ` nnimap compatibility issues (UTF-7, msg count, SEARCH vs. group Dave Love
2003-05-23 17:59   ` Matthias Andree
2003-05-25 16:47     ` Dave Love
2003-05-27 14:41       ` Matthias Andree
2003-05-27 15:37         ` Kai Großjohann
     [not found]           ` <843cj0e6yo.fsf@lucy.is.informatik.uni-duis?= =?iso-8859-15?q?burg.de>
2003-05-28  0:41             ` Matthias Andree
2003-05-28  9:08               ` Kai Großjohann
2003-05-29 17:52           ` Dave Love

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