Hi,
We find ourselves in the unenviable position of creating an email
reader, may I ask how we best parse incoming messages? Ideally we would
point the parser at a email stored in a POP3--grab the email body's
bytestreams, and get back an array of AttachmentFile collections
(filename, size, mime/type), as well as a HTMLBody and a TextBody*.
Both HTMLBody and TextBody would be filled if it's a multipart/alternate.
Only HTMLBody would be filled if it's HTML only.
Only TextBody would be filled if it's a text/plain message.
Ofcourse it's never this simple, with text-encoding to deal
with--ideally everything looks like unicode String() classes .NET
programmers are familiar with.
We are wondering if we should be studying webmail solutions in PHP siace
to see how they parse it. Or ask if you know of a truly commercial
COM/.NET component.
We are working with an email deployment partner at the moment and we are
having a lot of trouble parsing emails, any help would be greatly
appreciated.
Also bounces and error messages, what's a good component that will catch
all signatures (for most email servers)--it s a whole different (perhaps
bigger) can of worms.
Any advice would be greatly appreciated, thank you ahead of time!
Best regards,
-- Li-fan Chen