ingeva Posted August 6, 2009 Share Posted August 6, 2009 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-, 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 More sharing options...
ingeva Posted August 7, 2009 Author Share Posted August 7, 2009 No one? Link to comment https://forums.phpfreaks.com/topic/169149-solved-reading-mail-files/#findComment-893135 Share on other sites More sharing options...
ingeva Posted August 8, 2009 Author Share Posted August 8, 2009 SOLVED! I found the iconv_mime_decode function. Link to comment https://forums.phpfreaks.com/topic/169149-solved-reading-mail-files/#findComment-893514 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.