Jump to content

[SOLVED] Reading mail files


ingeva

Recommended Posts

I've written a mailing/discussion-list script which saves (archives) messages sent through the list.

I'm now working on a script to enable the members to read archived e-mails.

My problem is with character conversion.

For each e-mail message, the date and subject are displayed. Members send their messages with different coding, and when the subject contains national characters, it can look like this:

 

[alle] =?Windows-1252?Q?FW:_Morgen?= =?Windows-1252?Q?dagens_=F8ve?=

or

[alle] =?UTF-8?B?QW5nw6VlbmRlIGlubmxvZ2dpbmc=?=

 

which is not very nice.

 

I've searched for a function that can do the correct conversion (to UTF-8), but no luck.

When the e-mail files are displayed with Thunderbird or even Outlook Express (!!) the subject comes out just fine, so there IS definitely a way to do this! :)

 

Appreciate all help.

Link to comment
https://forums.phpfreaks.com/topic/169149-solved-reading-mail-files/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.