Revert "Merge branch 'master' of http://github.com/lixiaojun/MailCore"

This reverts commit 33ddffb4fd4dbe6ed5534a602acf4bbcc35fb089, reversing
changes made to 289cf0d5949b8d81eb50de536f973d7827b08ac0.
bugfix: double free