Home GnuPG
Diffusion GpgOL a03d8906e441

Implement basic PGP/Inline support for Encryption

Description

Implement basic PGP/Inline support for Encryption

* src/mail.cpp (Mail::encrypt_sign): Mark down if inline is
requested.
* src/mail.h (Mail::should_inline_crypt): New.
* src/mimedataprovider.cpp (MimeDataProvider::collect_input_lines):
Handle "MIME Inline" for our own sent messages.
* src/mimemaker.cpp (finalize_message): Handle is_inline.
(create_top_encryption_header): Handle is_inline to write
text/plain header.
(mime_encrypt): Support inline if no attachments exist.

This adds a first basic inline support. If the option
is set and a PGP Message without attachments is sent
the message will be sent as PGP Inline message.
Currently only supported for "Encrypt" not Encrypt / Sign.