Bug 3854 - IMAP error on imap.qip.ru: parse error (very probably non-RFC compliance from the server)
Summary: IMAP error on imap.qip.ru: parse error (very probably non-RFC compliance from...
Status: RESOLVED INVALID
Alias: None
Product: Claws Mail (GTK 2)
Classification: Unclassified
Component: Folders/IMAP (show other bugs)
Version: 3.15.0
Hardware: PC Linux
: P3 normal
Assignee: users
URL:
Depends on:
Blocks:
 
Reported: 2017-07-31 09:29 UTC by Ivan Romanov
Modified: 2019-01-03 10:06 UTC (History)
0 users

See Also:


Attachments
Network Log (1.86 KB, text/plain)
2017-07-31 09:29 UTC, Ivan Romanov
no flags Details
Short claws log with error (2.03 KB, text/plain)
2017-09-29 14:40 UTC, Ivan Romanov
no flags Details
expect log with error (1.92 KB, text/plain)
2017-09-29 14:41 UTC, Ivan Romanov
no flags Details
expect script to reproduce no error (613 bytes, application/octet-stream)
2017-09-29 14:43 UTC, Ivan Romanov
no flags Details
expect log withot error (1.92 KB, text/plain)
2017-09-29 14:44 UTC, Ivan Romanov
no flags Details

Description Ivan Romanov 2017-07-31 09:29:35 UTC
Created attachment 1768 [details]
Network Log

Often I get such error message in Network Log. My mail server is http://qip.ru. Due this error it is difficult to use Claws. Connection is often broken. I also will write to qip.ru support. I understand that it can be a server problem.
Comment 1 Andrej Kacian 2017-07-31 10:58:09 UTC
If I'm reading this right, the last line received from server is bogus - it seems to be a repeat of the similar line two lines above, but without the mandatory pseudo-tag "*". (RFC 3501 section 2.2)

Also, it is sent after the "OK" response to our "STORE" request, which is wrong. (see RFC 3501, section 6.4.6)

In IMAP protocol terms, that line is basically an unsolicited (and invalid) server reply to a client request with tag "FETCH", which was never made.

No wonder Claws Mail doesn't like it. The server seems to be broken.
Comment 2 Ivan Romanov 2017-09-29 14:40:58 UTC
Created attachment 1807 [details]
Short claws log with error
Comment 3 Ivan Romanov 2017-09-29 14:41:56 UTC
Created attachment 1808 [details]
expect log with error
Comment 4 Ivan Romanov 2017-09-29 14:43:29 UTC
Created attachment 1809 [details]
expect script to reproduce no error
Comment 5 Ivan Romanov 2017-09-29 14:44:45 UTC
Created attachment 1810 [details]
expect log withot error
Comment 6 Ivan Romanov 2017-09-29 14:46:39 UTC
I tried to do the same with telnet. So no any errors. I used expect to test qip.ru. Logs in attachments. Password replaced with *******.
Comment 7 Andrej Kacian 2017-09-29 15:14:44 UTC
The bogus "* 12 FETCH ()" server response (after your "UID STORE" command with tag 10) is still there in the session driven by your expect script. It shouldn't be there at all, see my comment #1.
Comment 8 Ivan Romanov 2017-09-29 15:39:11 UTC
Do you mean this wrong?

C: 10 UID STORE 127196 +FLAGS.SILENT (\Deleted)
S: * 12 FETCH ()
S: 10 OK STORE completed

Section 6.4.6 has such example

   Example:    C: A003 STORE 2:4 +FLAGS (\Deleted)
               S: * 2 FETCH (FLAGS (\Deleted \Seen))
               S: * 3 FETCH (FLAGS (\Deleted))
               S: * 4 FETCH (FLAGS (\Deleted \Flagged \Seen))
               S: A003 OK STORE completed

I don't see here a big difference.
Comment 9 Ivan Romanov 2017-09-29 15:45:00 UTC
I must exactly understand what to write to QIP support and will capable to argue why this must be changed. Seems they very lazy or stupid.
Comment 10 Andrej Kacian 2019-01-03 10:06:31 UTC
(In reply to comment #9)
> I must exactly understand what to write to QIP support and will capable to
> argue why this must be changed. Seems they very lazy or stupid.

Yes, most of the server output in your logs is just like the cited example from the RFC. However, the server always seem to include one extra line, which should not be there:

Last few lines from your first log:

[12:13:33] IMAP> 6 UID STORE 122415 +FLAGS.SILENT (\Seen) 
[12:13:34] IMAP< * 427 FETCH () 
[12:13:34] IMAP< 6 OK STORE completed 
[12:13:34] IMAP< 427 FETCH ()          <----- wrong



Last few lines from your second log:

[16:59:31] IMAP> 10 UID STORE 127147 +FLAGS.SILENT (\Deleted) 
[16:59:31] IMAP< * 12 FETCH () 
[16:59:31] IMAP< 12 FETCH ()    <----- wrong

Note You need to log in before you can comment on or make changes to this bug.