I'm looking for a perl module that will allow me to disect email. The story is this:
When submitting patches to wine, people send in their patches. People usually either inline their patch (i.e. - paste it into the email's body), where the mail client often line-wraps it, or attach it, where the mail client often base64 encodes it.
It is not overly obscure why the first problem is a problem. Line wrapped patches are not applied, and things break. The second problem means that the diff is not displayed by the mail client inside the mail (i.e. - people have to actually open the attachement, thereby reducing the eyes viewing the patch), and it's also a headache for the maintainer to commit.
Asking people to attach as text/plain does not work. Some people work from strange and hostile environments (Exchange). I offered to write a mail filter that will make sure that the mail that actually reach the list are all in a proper format. I'm looking for a way to avoid reinventing the wheel (some of the multipart/mime formats can be a real pain to analyze). I'm sure such a library exists, but I have not been able to locate one.
I need a library that will allow simple disection of of email messages, and will allow me to traverse the different attachments of the mail, and to get them unencoded. I also need a library that is capable of generating email in a format of my choice, but that's a simpler problem to solve (I also think I found one).
Many thanks,
Shachar
-- Shachar Shemesh Open Source integration & consulting Home page & resume - http://www.shemesh.biz/
================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]