Implement add encrypted attachment
Add a binary encrypted attachment to a Message object using OOM. The binary option requires very recent Versions of GPA or Kleopatra. * src/common.c, src/common.h (get_pretty_attachment_name), (get_tmp_outfile): New. Helper functions for attachments. * src/engine-assuan.c (op_assuan_encrypt): Handle binary option. * src/engine.h (ENGINE_FLAG_BINARY_OUTPUT): New. * src/mimemaker.c, src/mimemaker.h (sink_file_write): New. Sink to work on a file handle. * src/oomhelp.cpp, src/oomhelp.h (add_oom_attachment): New. Add an attachment to an Object with an Attachments collection. * src/ribbon-callbacks.cpp (addEncSignedAttachment): Implment adding an encrypted attachment.
- Although it is still possible to add an attachment over MAPI I found no way to update the Inspector of the Message Object aside from closing it / opening a new inspector.