summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorDavid Llewellyn-Jones <david.llewellyn-jones@jolla.com>2021-01-04 15:21:12 +0000
committerPekka Vuorela <pekka.vuorela@jolla.com>2023-11-15 11:43:21 +0200
commit5a36d45af9670a46f7307c20f5d86528f84a4a40 (patch)
tree2019591a25fcdb3ad6375c1f454a06025ae1044b /examples
parent599b64a2a740a2934a3263270212aac9d6771f4a (diff)
Add QMailMessage::CalendarCancellation flag
Introduces a CalendarCancellation flag similar to the QMailMessage::CalendarInvitation to be matched against the QMailMessage::status() bitfield. While the CalendarInvitation flag indicates that the message contains an attachment of type text/calendar with "REQUEST" method, the CalendarCancellation flag indicates that there's an attachment of type text/calendar with "CANCEL" method type. In other words, a calendar event cancellation. For reference, the "CANCEL" method of the Content Type header is described in RFC2447 (iMIP) Section 2.4 [1] in combination with the RFC2446 (iTIP) sections 3.2 and 3.2.5 [2] [1] https://tools.ietf.org/html/rfc2447#section-2.4 [2] https://tools.ietf.org/html/rfc2446#section-3.2 Change-Id: I1ef1d8a070e527552dae1ebe1677156bc07ba04d Reviewed-by: Matthew Vogt <matthew.vogt@qinetic.com.au>
Diffstat (limited to 'examples')
-rw-r--r--examples/qtmail/browserwidget.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/qtmail/browserwidget.cpp b/examples/qtmail/browserwidget.cpp
index 69eb62ce..3a2775b9 100644
--- a/examples/qtmail/browserwidget.cpp
+++ b/examples/qtmail/browserwidget.cpp
@@ -814,6 +814,7 @@ void BrowserWidget::displayHtml(const QMailMessage* mail)
metadata.append(qMakePair(tr("Message Id"), QString::number(mail->id().toULongLong())));
metadata.append(qMakePair(tr("CalendarInvitation"), (mail->status() & QMailMessage::CalendarInvitation) ? QString("true") : QString("false")));
+ metadata.append(qMakePair(tr("CalendarCancellation"), (mail->status() & QMailMessage::CalendarCancellation) ? QString("true") : QString("false")));
if ( (mail->status() & QMailMessage::Incoming) &&
!(mail->status() & QMailMessage::PartialContentAvailable) ) {