I want to make apple mail plugin but I don't know anything like!
There is no official plugin support in the Mail.app. Apple is pretty restrictive with its applications.
Anyways, there is a project which integrates PGP since years into Mail.app and its still supported by the original developer.
Check GPGMail. The source is freely available via GitHub and should give you a first overview or and project template for Mail.app plugins.