From 5a36d45af9670a46f7307c20f5d86528f84a4a40 Mon Sep 17 00:00:00 2001 From: David Llewellyn-Jones Date: Mon, 4 Jan 2021 15:21:12 +0000 Subject: 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 --- examples/qtmail/browserwidget.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'examples/qtmail/browserwidget.cpp') 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) ) { -- cgit v1.2.3