Verification of crypto signature

Hi all,

I need to extend RT with verification of signature. Incomming emails are
signed with PKCS#7 signatures, which are attached as S/MIME.
I am new to RT, so want to ask you, if somebody have such extension.
I’v tried to investigate source code of RTv3, but I am not sure, where and
how to implement requested feature. In mailgate is quite soon, because I
want to append some informations (such as certificate validity etc).
Other way is to use scrip on create, but at this time, I don’t have
original mail, so I am not able to call openssl to check signature.
Maybe the only way is to prerform check in mailgate and prepend some
informations into mailbody.

Thank you very much for any advice,