[git] GpgOL - branch, mime-addin, updated. gpgol-1.2.0-24-g6286d73

by Andre Heinecke cvs at cvs.gnupg.org
Thu Sep 17 16:52:58 CEST 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, mime-addin has been updated
       via  6286d7355fbb16060a5354fb5d3ccf1b624615cb (commit)
      from  77c1e2278577792dcd398cf56ea6c522b808eeb6 (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 6286d7355fbb16060a5354fb5d3ccf1b624615cb
Author: Andre Heinecke <aheinecke at intevation.de>
Date:   Thu Sep 17 16:43:40 2015 +0200

    Wipe the body of encrypted messages on write.
    
    * src/mailitem-events.cpp (Invoke): Wipe the body of messages
     that were encrypted.
    
    --
    There probably will be some more cases where we don't want that.
    Let's hope there are not too many data loss bugs.

diff --git a/src/mailitem-events.cpp b/src/mailitem-events.cpp
index 04f77f8..98f6385 100644
--- a/src/mailitem-events.cpp
+++ b/src/mailitem-events.cpp
@@ -196,12 +196,23 @@ EVENT_SINK_INVOKE(MailItemEvents)
         {
           if (m_send_seen)
             {
+              m_send_seen = false;
               return handle_after_write();
             }
         }
+      case Write:
+        {
+          if (m_wasencrypted && m_processed && !m_send_seen)
+            {
+              log_debug ("%s:%s: Wiping plaintext from body of Message: %lx \n",
+                         SRCNAME, __func__, m_object, dispid);
+              put_oom_string (m_object, "HTMLBody", "");
+              put_oom_string (m_object, "Body", "");
+            }
+        }
       default:
-        log_debug ("%s:%s: Unhandled Event: %lx \n",
-                       SRCNAME, __func__, dispid);
+        log_debug ("%s:%s: Message:%lx Unhandled Event: %lx \n",
+                       SRCNAME, __func__, m_object, dispid);
     }
   return S_OK;
 }

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

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


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




More information about the Gnupg-commits mailing list