[git] GpgOL - branch, master, updated. gpgol-2.0.5-15-g7d772b3

by Andre Heinecke cvs at cvs.gnupg.org
Thu Jan 11 16:53:29 CET 2018


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  7d772b3e6cadd73c23080b51d29d6a297ea59c67 (commit)
      from  707250ce6151a504f9143776cec2d6f09f4a80e4 (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 7d772b3e6cadd73c23080b51d29d6a297ea59c67
Author: Andre Heinecke <aheinecke at intevation.de>
Date:   Thu Jan 11 16:53:01 2018 +0100

    Add cmt to clarify base / non base msg usage
    
    --

diff --git a/src/mailitem-events.cpp b/src/mailitem-events.cpp
index 8d42e81..b3161f0 100644
--- a/src/mailitem-events.cpp
+++ b/src/mailitem-events.cpp
@@ -411,6 +411,7 @@ EVENT_SINK_INVOKE(MailItemEvents)
                       HRESULT hr;
                       LPSPropValue propval = NULL;
 
+                      // It's important we use the _not_ base message here.
                       LPMESSAGE message = get_oom_message (m_object);
                       hr = HrGetOneProp ((LPMAPIPROP)message, PR_MESSAGE_CLASS_A, &propval);
                       gpgol_release (message);
@@ -429,6 +430,7 @@ EVENT_SINK_INVOKE(MailItemEvents)
                           log_debug ("%s:%s: Message %p - Activating T3656 Workaround",
                                     SRCNAME, __func__, m_object);
                           message = get_oom_base_message (m_object);
+                          // It's important we use the _base_ message here.
                           mapi_save_changes (message, KEEP_OPEN_READWRITE | FORCE_SAVE);
                           message->SubmitMessage(0);
                           gpgol_release (message);

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

Summary of changes:
 src/mailitem-events.cpp | 2 ++
 1 file changed, 2 insertions(+)


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




More information about the Gnupg-commits mailing list