Allow property changes for encrypted drafts
authorAndre Heinecke <aheinecke@gnupg.org>
Thu, 11 Apr 2019 12:35:04 +0000 (14:35 +0200)
committerAndre Heinecke <aheinecke@gnupg.org>
Thu, 11 Apr 2019 12:35:04 +0000 (14:35 +0200)
* src/mailitem-events.cpp (PropertyChange): Pass changes
for drafts.

--
Drafts can be edited even though they are encrypted.

src/mailitem-events.cpp

index 2c1c43b..bbd339a 100644 (file)
@@ -312,6 +312,12 @@ EVENT_SINK_INVOKE(MailItemEvents)
               m_mail->setIsSendAgain (true);
               TRETURN S_OK;
             }
+          if (is_draft_mail (m_object))
+            {
+              log_oom ("%s:%s: Change allowed for draft",
+                       SRCNAME, __func__);
+              TRETURN S_OK;
+            }
 
           /* We have tried several scenarios to handle propery changes.
              Only save the property in MAPI and call MAPI SaveChanges