FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » FUDforum 3.0+ » Maillist with Multipart Content
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Maillist with Multipart Content [message #161812] Tue, 09 February 2010 21:03 Go to next message
jm2morri is currently offline  jm2morri   Canada
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 Go to previous message
jm2morri is currently offline  jm2morri   Canada
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.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Improved plugin support
Next Topic: various validation and cosmetic issues
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Nov 21 21:58:42 GMT 2024

Total time taken to generate the page: 0.03627 seconds