I think we should put the knives away for now.
Someone else has pointed out LinkedIn's explain of their solution here:
I like the spirit behind this tutorial. Technically, its an excellent, creative solution to a real problem - having emails annotated with additional context of our liking. Their only mistake is the overarching reach of the solution (i.e. send all your mail to LinkedIn). That makes it basically DoA.The 'proper' solution for this would be for their app to run the IMAP proxy in the background on your *local* device (i.e. listening localhost:), under *your* control. The VPN profile would then direct mail retrieval traffic to localhost:. The app would also give you control over rules and webservices used to annotate your email. Additional points if the app was open source.