iconv(): Wrong charset when calling download_emails.php

Bug #901653 reported by Schnaaf
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Eventum
Won't Fix
Low
Elan Ruusamäe

Bug Description

Running the download_emails.php script generates following notice:

PHP Notice: iconv(): Wrong charset, conversion from `unicode-1-1-utf-7' to `UTF-8' is not allowed in /var/www/eventum_2.3.1/lib/eventum/class.mime_helper.php on line 787

Any ideas on how to fix this?

Revision history for this message
Elan Ruusamäe (glen666) wrote :

could you provide testcase for this? raw email with needed headers i suppose. (edit it to protect your privacy)

Revision history for this message
Schnaaf (psavelberg) wrote :

Hi Elan,

I found out that this is caused by undeliverables recieved from a certain customer. I have attached the header.

Thanks for looking into this.

Elan Ruusamäe (glen666)
Changed in eventum:
milestone: none → 2.3.4
Elan Ruusamäe (glen666)
Changed in eventum:
milestone: 2.3.4 → 2.4
Revision history for this message
Elan Ruusamäe (glen666) wrote :
Revision history for this message
Elan Ruusamäe (glen666) wrote :

the error is in attachment parsing part, which you did not include in bugreport even i asked for full email

thus unable to reproduce.

added test case for the incomplete test:
https://github.com/eventum/eventum/commit/9464caa9e71b1e188e968fdb6cb5f7c2f5a1177e

Changed in eventum:
assignee: nobody → Elan Ruusamäe (glen666)
status: New → Incomplete
importance: Undecided → Low
Elan Ruusamäe (glen666)
Changed in eventum:
milestone: 2.4 → none
status: Incomplete → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.