hi
my client and others send the mail subject with mime encoding (http://www.faqs.org/rfcs/rfc2047)
when jobtrack register subject like this:
"accetni forse corretti èèèèè con imap_utf8"
(
sended by mailclient as
Subject: accetni forse corretti =?ISO-8859-15?Q?=E8=E8=E8=E8=E8_con_i?=
=?ISO-8859-15?Q?map=5Futf8_?=
)
then after the fetch drupal tiutle node is:
"accetni forse corretti =?ISO-8859-15?Q?=E8=E8=E8=E8=E8_con_i?=
=?ISO-8859-15?Q?map=5Futf8_?="
and not
"accetni forse corretti èèèèè con imap_utf8"
with this little hack the fetc work fine:
start at line 1768 from jobtrack.module
-----------------------------------------------
if (is_array($header->from)) {
$from = $header->from[0]->mailbox .'@'. $header->from[0]->host;
}
$sub=imap_mime_header_decode($header->subject);
foreach($sub as $s)
$subject .= drupal_convert_to_utf8($s->text,$s->charset);
// Search for the the ticket number in the subject.
$key = variable_get('jobtrack_key', 'tkt');
$tickets = array();
------------------------------------------
i think you need to check & fix this problem
more info/example about this on
http://uk2.php.net/manual/en/function.imap-mime-header-decode.php
bye bye
luigi
Comments
Comment #1
jeremy commentedI have committed support for parsing mime encoded subjects. Your suggested change was close, but didn't work for non-encoded subjects.