Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#1486981 closed Bugs (worksforme)

Inbox shows no mails / Server Error

Reported by: creo Owned by:
Priority: 5 Milestone: 0.5-beta
Component: Core functionality Version: 0.4-stable
Severity: normal Keywords:
Cc: astthorip

Description

I had a problem with the Inbox of a customer holding about 40 messages in it. Suddenly the inbox won't open ( Server Error! ) and no messages of the Inbox were displayed, although roundcube was able to determine the number of messages it SHOULD hold by displaying it next to the Mailbox name.

All other Mailboxes were fine.

After messing around with the Inbox file I found out that a single message (you find it in the attachment of this ticket) caused this behaviour. As soon as I removed the message from the respective mbox file, roundcube worked fine again.

Meanwhile I could access the Mailbox and the "defective" mail through Thunderbird without noticing any problems.

I *guess* it might have something to do with #1486310 as it shows exactly the same behaviour, although I could not spot any suspicious special chars in the message.

I don't know which Milestone this should apply to - I have 0.4, no RC or somewhat :)

Attachments (2)

rawmail.txt (2.0 KB) - added by creo 3 years ago.
The raw mail in question
test-message.txt (1.6 KB) - added by astthorip 3 years ago.

Download all attachments as: .zip

Change History (10)

Changed 3 years ago by creo

The raw mail in question

comment:1 Changed 3 years ago by alec

  • Milestone changed from later to 0.4.1

Works for me. What PHP/OS/IMAP versions? Enable imap_debug and attach the log here.

comment:2 Changed 3 years ago by alec

Did you try with different browsers?

comment:3 Changed 3 years ago by astthorip

  • Cc astthorip added

I have the same problem (or similar). I have spotted that one message containing non-ascii characters is causing the problem. If I remove the message everything is working.

I have tested this and getting the "Server Error! (OK)" message in IE8, Chrome 6 and Safari 4. There is no problem in Firefox 3.6.

The subject of the mail is: "Ã�b gönguð". It's some weird conversion of the text: "Áb gönguð" (probably from a Mac client).

This is the AJAX response for this action: /?_task=mail&_action=list&_mbox=INBOX&_refresh=1&_remote=1&_=1284545262493&_unlock=1:

{"action":"list","unlock":true,"env":{"mailbox":"INBOX","pagesize":40,"quota":true,"delimiter":".","threading":false,"threads":true,"read_when_deleted":true,"preview_pane_mark_read":0,"trash_mailbox":"Trash","drafts_mailbox":"Drafts","junk_mailbox":"Junk","messagecount":1,"pagecount":1,"current_page":1},"exec":"this.set_pagetitle(\"Webmail :: Inbox\");\nthis.set_unread_count(\"INBOX\",0,true);\nthis.set_rowcount(\"Messages 1 to 1 of 1\");\nthis.set_mailboxname(\"Inbox\");\nthis.set_message_coltypes([\"threads\",\"subject\",\"from\",\"date\",\"size\",\"flag\",\"attachment\"],null);\nthis.add_message_row(\"3\",{\"subject\":\"Re: Fwd: \\u00c3�b g\\u00c3\\u00b6ngu\\u00c3\\u00b0\",\"from\":\"<span title=\\\"aip-test@dacoda.is\\\" class=\\\"rcmContactAddress\\\">\\u00c1st\\u00fe\\u00f3r I. P\\u00e9tursson<\\\/span>\",\"date\":\"Today 09:56\",\"size\":\"2 KB\"},{\"mbox\":\"INBOX\"},false);\n"}

I guess the problem is that "�" isn't encoded.

I will attach the raw message.

Changed 3 years ago by astthorip

comment:4 Changed 3 years ago by alec

On my systems the subject for test-message.txt in ajax response is:

Re: Fwd: \u00c3\u0000b g\u00c3\u00b6ngu\u00c3\u00b0

So, again what PHP/OS/IMAP versions? Iconv/mbstring modules installed? What locale?

comment:5 Changed 3 years ago by astthorip

  • PHP: 5.2.0+dfsg-8+etch16
  • OS: Debian 4.0 (etch)
  • IMAP: Courier 4.1.1.20060828-5
  • Iconv enabled (implementation: glibc / version: 2.3.6)
  • mbstring enabled (engine: libmfbl / version: 4.4.4)
  • system locale: en_GB.UTF-8

I'll update the server to lenny next week to check if the old packages are causing this.

comment:6 Changed 3 years ago by alec

Any news?

comment:7 Changed 3 years ago by alec

  • Resolution set to worksforme
  • Status changed from new to closed

No feedback.

comment:8 Changed 3 years ago by astthorip

Sorry about the late reply.

I have updated to lenny and the problem does not exist anymore so I guess this has something to do with the encoding in PHP <= 5.2.0 or related packages.

Note: See TracTickets for help on using tickets.