Home GnuPG
Diffusion GpgOL 8d8f8c604dff

Enable sender handling for Exchange Accounts
8d8f8c604dffUnpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

Enable sender handling for Exchange Accounts

* src/mail.cpp (Mail::update_sender): New. Updates sender address
  from OOM.
  (Mail::get_sender): New. Access the sender.
  (Mail::do_crypt): Pass sender to crypto functions.
* src/mail.h: Update accordingly.
* src/mailitem-events.cpp (EVENT_SINK_INVOKE): Update sender on send
  event.
* src/message.cpp, src/message.h, src/mimemaker.c, src/mimemaker.h:
  Add optional sender parameter to crypto functions and use it.

In the after write event we can't use OOM methods so we can't look
up the sender over the session. This makes it neccessary to save
the sender address beforehand as I could not find any way to get this
information through MAPI (probably over the MAPISession).

Details

Provenance
aheineckeAuthored on Oct 30 2015, 4:41 PM
Parents
rO9207e8fb039b: Factor logic out of event handler
Branches
Unknown
Tags
Unknown