I've updated my PMMail/2 helper script to version 2.02 (and renamed it to a more PMMail/2-dedicated Name: PMMIncoming.cmd). This REXX script manipulates malformed emails so that they will be correctly handled by PMMail/2. Version 2.02 is almost a complete rewrite and has many improvements.
The following main problems are being addressed by this script:
* Subject, From, To, Cc and Reply-To are transformed to ISO-8859-1 if one of the following problems occour:
o headerline is encoded in UTF-8 (idicated)
o headerline is encoded in ISO-8859-15 (idicated)
o headerline has no indicated encoding but is UTF-8
o headerline has no indicated encoding but is ISO-8859-15 (this all would otherwise lead to false Subjects, Froms, etc. if German Umlauts, etc are used)
* Body encoding is changed to ISO-8859-1 if Content-Type indicates ISO-8859-15 (this would otherwise lead to a false Body if German Umlauts, etc. are used)
* Mime-Version, Content-Type and Content-Transfer-Encoding are added to the header if not present (this would otherwise lead to a false Body if German Umlauts, etc. are used, cause in most cases these mails use ISO-8859-1 encoding - which has to be indicated for PMMail/2 to be recognized)
* ISO encoded mails that are falsely set to a 7bit tranfer encoding are set to 8bit (this would otherwise lead to a false body)
* Date is adjusted by adding the time difference between used timezone and GMT if PST (PDT) or EST (EDT) is used and no time difference is idicated. (this would otherwise lead to a misinterpretation of the message's timestamp)
* Sub-Header in some Multipart mails are checked as well if they contain text and have incomplete headerinformation (this would otherwise again lead to false Body if German Umlauts, etc. are used)
Get the script from here: http://www.infinity-2.de
(The webpage is available in German and English now.)
BTW: I've released an update to the Mozilla-Integration of PMMail/2 too. (The original approach doesn't work with newer Mozillas anymore.)
Best regards and season's greetings
Axel
PS: Let's all hope this script won't be necessary anymore in the near future, when PMMail/2 will hopefully be mainained by VOICE!
Source: OS2VOICE