Bug 92124 - imap crashes on broken subject line
Summary: imap crashes on broken subject line
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kio
Classification: Frameworks and Libraries
Component: imap (show other bugs)
Version: unspecified
Platform: Debian testing Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-26 13:07 UTC by Fred Schättgen
Modified: 2018-11-17 12:44 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
mail with broken date (4.46 KB, message/rfc822)
2004-10-27 18:44 UTC, Fred Schättgen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Fred Schättgen 2004-10-26 13:07:43 UTC
Version:            (using KDE KDE 3.3.0)
Installed from:    Debian testing/unstable Packages

My kio_imap started crashing today each time I click one single imap folder.

These are the responses of the server when I replay the commands sent by the imap slave via telnet (I hope it won't be completely broken because of the linebreaks by this webform):

* OK GMX IMAP4 StreamProxy ready.
* CAPABILITY IMAP4 IMAP4rev1 IDLE AUTH=LOGIN AUTH=CRAM-MD5
0 OK CAPABILITY completed
1 OK LOGIN completed
* LIST (\Noinferiors) "/" "L-kdebluetooth"
2 OK LIST completed
* 1211 EXISTS
* 1 RECENT
* FLAGS (\New \Seen \Deleted \Answered \Forwarded)
* OK [PERMANENTFLAGS (\New \Seen \Deleted \Answered \Forwarded)] Permanent flags
* OK [UNSEEN 1203] Is the first unseen message
* OK [UIDVALIDITY 1076679817] UIDVALIDITY value
3 OK [READ-WRITE] SELECT completed
4 OK NOOP completed
* 1211 FETCH (UID 1220 RFC822.SIZE 4664 FLAGS (\Recent) ENVELOPE ("Tue, 26 Oct 2004 10:19:53 -0000 (Local time zone must be set--see zic
        manual page)" "Re: [kde-bluetooth] Backup address book" (("Stuart Grimshaw" NIL "stuart" "smgsystems.co.uk")) ((NIL NIL "kde-bluetooth-bounces+kde-bluetooth=ttgen.net" "liste.ferrara.linux.it")) (("Development of KDE utilities for bluetooth" NIL "kde-bluetooth" "liste.ferrara.linux.it")) (("Development of KDE utilities for bluetooth" NIL "kde-bluetooth" "liste.ferrara.linux.it")) NIL NIL "<200410251753.13771.simone.gotti@email.it>" "<65295.84.45.17.100.1098785993.squirrel@84.45.17.100>") BODY[HEADER.FIELDS (REFERENCES)] {213}
References: <200410251317.50485.ringhio@despammed.com>
        <200410251446.20955.simone.gotti@email.it>
        <41779.158.110.1.4.1098711898.squirrel@borabora.spotmusic.net>
        <200410251753.13771.simone.gotti@email.it>

When using kmail itself, the transmission ends right after "Local time zone must be set--see zic ". Between that and the following "manual page" there is a linefeed and a tab (0x0a,0x09). 
I guess it is not ok to have that in a subject line. But kio_imap still shouldn't simply crash because of that ;) It would be a bit hard to remove this mail if all I had was kmail.

The debugging output I get is: 
QGArray::at: Absolute index 0 out of range
kioslave: ####### CRASH ###### protocol = newimap pid = 1465 signal = 11

I'm still using KDE 3.3.0 (Debian packages) btw.
Comment 1 Fred Schättgen 2004-10-26 13:16:19 UTC
It's the date, not the suject line of course, sorry.
GMX seems to simply ignore the linebreak/tab in their web interface btw.
Comment 2 Carsten Burghardt 2004-10-26 19:41:02 UTC
Can you save this message and attach it to the report?

Comment 3 Fred Schättgen 2004-10-27 18:44:47 UTC
Created attachment 8056 [details]
mail with broken date

This mail crashes the imap kioslave.
Disconnected imap seems to works though.
Comment 4 Carsten Burghardt 2004-10-27 22:45:26 UTC
It doesn't crash with HEAD. Can somebody please check this with 3_3_BRANCH?
What imap server is this?

Comment 5 Fred Schättgen 2004-10-27 23:49:16 UTC
It's a GMX Promail account. If you're from germany you'll probably know it.
I have just tested it with web.de's imap-server and I don't have the problem there. But on the GMX-Server, I even get the error if I move the mail to another folder (with disconnected imap).
Tomorrow I'll try the get kde HEAD installed. Let's see what happens then..
Comment 6 Carsten Burghardt 2004-10-31 15:31:52 UTC
In this case it's probably gmx specific. Hard to debug then.

Comment 7 Thomas McGuire 2007-12-12 23:38:06 UTC
Reassigning the bugs of the SMTP, IMAP and POP ioslaves to kdepim-bugs.
Comment 8 Christophe Marin 2018-11-17 12:44:49 UTC
kio_imap4 doesn't exist anymore.