Not to say that this isn't a bad idea though. It would have been an easier sell if you could do the IMAP proxying on the local device somehow.
http://cm.bell-labs.com/who/ken/trust.html
This should be easy to run an background proxy under Android. Not sure if this is possible under iOS7 though.