Part.openpgpEncrypt
bool openpgpEncrypt(bool sign, string userid, gmime.types.EncryptFlags flags, string[] recipients)Encrypts (and optionally signs) the content of the mime_part and then replaces the content with the new, encrypted, content.
Parameters
sign | true if the content should also be signed; otherwise, false |
userid | the key id (or email address) to use when signing (assuming sign is true) |
flags | a set of #GMimeEncryptFlags |
recipients | an array of recipient key ids and/or email addresses |
Returns
true on success or false on error.
Throws
[ErrorWrap]