email-processing

Is it possible to programmatically 'clean' emails?

Does anyone have any suggestions as to how I can clean the body of incoming emails? I want to strip out disclaimers, images and maybe any previous email text that may be also be present so that I am left with just the body text content. My guess is it isn't going to be possible in any reliable way, but has anyone tried it? Are there any ...

how to parse an email message and process various information

Is there any library to parse email messages? I know there are a lot. In addition to basic MIME parsing it should be able to parse things like: If the mail is a forwarded message: parse and tell me the original sender of the message. Get the the parts that should be quoted. I mean like Gmail shows "- Show quoted text -" It should su...

design question: posting picture via email to our site

I have a site which allows people to post pictures. I would like to allow people to send an email with an attachment to a specific email address to post the picture to our site and have it associated with the account of the sender. Any ideas on a secure way to do this without asking the user to add a special key to their email - as thi...

Want to automatically process email attachments based on username and subject

I'm seeking advice about setting up an email gateway so students can email me homework and the email will be processed automatically. For example, if a [email protected] emails me with a subject of "CS208 hw1", I would cross check studenta in a list of students taking CS208, then take all the attached files, dump them in that student's ...