OK... this looks like we're trying to fix an encoding problem but we're looking for the wrong charset so the file names are not getting decoded.
Why do I think this? Simply because when a file is present the code fails, when you uncomment the file name decode fall back it fails but if there is no attachment the code works, this tells me your problem is in the file name decoding.
Before going any further we need to check we're not trying to fix the wrong thing, try passing an email with an attachment that has no special characters, just the standard English alphabet, if it fails reinstate my code that I previously uploaded in the zip file for class.mailfetch.php and retry sending the email with the attachment.
If both fail then we may be looking at a slightly different problem in which case we you will need to start logging the events from start to finish to find where the code is breaking, an example is what I did on line 267.
However if at least 1 goes through we are in the right ballpark and need to look at the attachment decode fall back I put in place, so I will continue assuming this is the case.
Being in Brazil ISO-8859-1 is the main charset used, after a quick search I found this seems to be the primary charset also used in South Africa - a little puzzling - so what we need to do is first check the charset specified in the email header as it may be different, to do this you will need to find an original email and check the header.
If you find it is not ISO-8859-1 then change line 315 of class.mailfetch.php to the correct charset.
$pm_pattern = '/ISO-8859-1/';
IMPORTANT: this is a regular expression meaning only change the charset, the / are both required for it to function.
If the header does specify ISO-8859-1 and there is no other charset in sight, then we need to start logging the activities that are working with the attachments to find where the code is breaking.
Hopefully this resolves the issue. If not we need to see what logging tells us.
If you need help with logging the activities then let me know, I will need to know the type of hosting environment (e.g. shared, VPS, dedicated, etc...), your permissions (I have root admin permissions on our server so what I can do may be a lot more than you) and the preferred path to log the activities (if you're in a shared hosting environment this will probably have to be in the folder where you upload your HTML files to, e.g. /srv/www/your-domain/public_html/
You may want to send this to me as an IM if you need this help but notify me of the IM in the thread or else I may not see it for a while.