Google has an email auditing feature that will allo开发者_运维问答w a google apps admin to bcc incoming and outgoing email (lots of options) to another account. The problem is that the email is sent the other account as an attachment. The attachment is the full email, headers and all. I would like to convert this to an email and send it or maybe better described as receive it at another account as if it was actually Bcc'd to me.
My thought on this was to write a python script to get the email from the account and do the conversion and resend/upload via imap. but I don't really know where to start.
1, Has this problem been solved, i.e. is the an open source solution?
2, If I was to write this in python can you recommend or provide an example/tutorial that might get me started.
Thanks Vincent
- Not to my knowledge, but I don't know that much.
- offlineimap is written in Python and performs both IMAP downloads and uploads. Python comes with an email parser and imap client. Those might be a good places to start.
精彩评论