Maillist with Multipart Content [message #161812] |
Tue, 09 February 2010 21:03 |
jm2morri
Messages: 225 Registered: January 2009 Location: Stratford, Ontario, Canad...
Karma: 0
|
Senior Member |
|
|
Hello,
Looking at the maillist.php script it looks like it doesn't currently support messages with content-type set to multipart/alternative. Unfortunately, this is exactly the format that yahoo groups uses.
So I'm interested in adding support for this. These messages have both a text section and an html section with the separator being the text string indicated by "boundary" below...
Has anyone looked at this before? Any pointers how to update that script to pull out the text message? I don't necessarily want the html section but it might be good to have an option to do so easily.
The format is something like
...
Content-Type: multipart/alternative;
boundary="eKZscSMnwdfEkoV-6XRZZj8TqyMvJ5Dzs2nR7zt"
...
--eKZscSMnwdfEkoV-6XRZZj8TqyMvJ5Dzs2nR7zt
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
....
--eKZscSMnwdfEkoV-6XRZZj8TqyMvJ5Dzs2nR7zt
Content-Type: text/html; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Cheers,
James.
|
|
|
Re: Maillist with Multipart Content [message #161813 is a reply to message #161812] |
Wed, 10 February 2010 03:58 |
jm2morri
Messages: 225 Registered: January 2009 Location: Stratford, Ontario, Canad...
Karma: 0
|
Senior Member |
|
|
OK, I got this working. It turns out on closer inspection that the multipart/alternative content type is handled and quite well. It tries to use plain text if its there and html otherwise.
The issue I had was with permissions. The folder that holds the messages has to be writable by the user to whom the emails is addressed and part of the apache group.
Hopefully that helps someone else if they come across this.
Cheers,
James.
|
|
|