Source from https://code.google.com/p/secure9mail/