[git] GpgOL - branch, master, updated. gpgol-1.2.0-81-g7294034

by Andre Heinecke cvs at cvs.gnupg.org
Mon Nov 2 15:21:34 CET 2015


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GnuPG extension for MS Outlook".

The branch, master has been updated
       via  7294034592b5bef76dc06be5242e13bf6e39922f (commit)
      from  eb54d1fb786b2944d787ee764f99843bbfab2641 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 7294034592b5bef76dc06be5242e13bf6e39922f
Author: Andre Heinecke <aheinecke at intevation.de>
Date:   Mon Nov 2 15:16:46 2015 +0100

    Fix handling sent and exchange to exchange mails.
    
    * src/mail.cpp (Mail::process_message): Always change message class.
    
    --
    Changing the message class in the before read event causes
    Outlook to reconsider what it knows about a message and to read
    information again from the unwrapped basemessage. While this
    may have a negative impact on performance this fixes the case
    where Outlook already knows too much about a message because
    it was either recieved by exchange (and so already had the
    MAPI properties from GPGOL set) or because it sent the
    message itself and so also had the GpgOL MAPI properties.

diff --git a/src/mail.cpp b/src/mail.cpp
index 232183a..baf0cb5 100644
--- a/src/mail.cpp
+++ b/src/mail.cpp
@@ -99,6 +99,14 @@ Mail::process_message ()
     }
   log_oom_extra ("%s:%s: GetBaseMessage OK.",
                  SRCNAME, __func__);
+  /* Change the message class here. It is important that
+     we change the message class in the before read event
+     regardless if it is already set to one of GpgOL's message
+     classes. Changing the message class (even if we set it
+     to the same value again that it already has) causes
+     Outlook to reconsider what it "knows" about a message
+     and reread data from the underlying base message. */
+  mapi_change_message_class (message, 1);
   err = message_incoming_handler (message, NULL,
                                   false);
   m_processed = (err == 1) || (err == 2);

-----------------------------------------------------------------------

Summary of changes:
 src/mail.cpp | 8 ++++++++
 1 file changed, 8 insertions(+)


hooks/post-receive
-- 
GnuPG extension for MS Outlook
http://git.gnupg.org




More information about the Gnupg-commits mailing list