Additional info:
The problem seems to be only with the subject. The script isnt converting the subject 'tésté' to utf-8 i think. Its failing to insert in the DB then.
Email header:
Return-Path: suporte@topestrategia.com.br
Received: from www.topestrategia.com.br(www.topestrategia.com.br) ()
by topestrategia.com.br
; Thu, 27 Aug 2009 17 -0300
Received: from 189.63.153.132
(SquirrelMail authenticated user suporte@topestrategia.com.br)
by www.topestrategia.com.br(www.topestrategia.com.br) with HTTP;
Thu, 27 Aug 2009 17 -0300
Message-ID:
Date: Thu, 27 Aug 2009 17 -0300
Subject: =?iso-8859-1?Q?fuckenshit=E9=E9=E9=E9?=
From: suporte@topestrategia.com.br
To: suporte@topestrategia.com.br
User-Agent: SquirrelMail/1.4.20-RC2
MIME-Version: 1.0
Content-Type: text/plain;charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Priority: 3 (Normal)
Importance: Normal
Email body is being converted just fine, even with special chars.
Thanks