using jython
I have a situation where emails come with various attachments. I process some types of files others. I ignore and do not write to the file. I found myself in a rather unpleasant situation, because sometimes people send an email as an attachment, and the attached letter has legal attachments.
What I want to do is skip the attached letter and all its attachments.
using python / jythons std email lib how can i do this?
to make it understandable
I need to parse an email (named ROOT email), I want to receive attachments from this email using jython. Further, certain attachments are supported, i.e. .pdf.doc, etc. now it just so happens that clients send an email (ROOT email) with another email (CHILD email) as an attachment, and in the CHILD email it has .pdf attachments, etc.
I need to: get rid of any CHILD emails attached to ROOT email and CHILD email attachments. What happens, I look through all the email and it just analyzes all the attachments, TURNOVO attachments and attachments for the children, as if they were ROOT attachments.
I canβt do that. I'm only interested in ROOT certificates that are legal, i.e...pdf.doc. xls.rtf.tif.tiff
It has to be done now, I have to run to catch the bus! thanks!
source share