How Thunderbird handle it's subject encryption?

Hi,

I’m creating a software that use GPG encryption.
So far I managed to encrypt the body of email and make it open by Thunderbird.

But I don’t find any documentation, how Thunderbird handle the subject encryption.

Thanks.