Hi, I know the StripAttachment mailet http://james.apache.org/mailet/standard/mailet-report.html#StripAttachment
StripAttachment support multipart attachments, but does not do anything special for inline attachments (especially the embedded images referenced via 'cid:').
You could use mime4j to better handle those cases (see https://svn.apache.org/repos/asf/james/mime4j/trunk/core/src/test/resources/mimetools-testmsgs/bluedot-postcard.msg for an sample used by mime4j unit tests, use also [email protected] for further details on mime4j).
Thx. Eric On 12/03/12 00:36, Kwi De Silva wrote:
Hi Guys, We are using James 2.1.3 in a production environment. In our mailet there is alot of code which deals with stripping incoming mails of attachments etc and saving it locally, I've noticed recently that we've received incoming mails which have some more scenarios than we have accounted for. For instance - inline attachments etc. Are there any mailet examples out there which handle most (or all) MIME content scenarios? Thanks Kwi --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
-- eric | http://about.echarles.net | @echarles --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
