Fix bug #3354, "Event cancellation uses incorrect method parameter for Content-Type...
authorColin Leroy <colin@colino.net>
Fri, 19 Dec 2014 15:26:37 +0000 (16:26 +0100)
committerColin Leroy <colin@colino.net>
Fri, 19 Dec 2014 15:26:37 +0000 (16:26 +0100)
src/plugins/vcalendar/vcal_manager.c

index a21c6a8..2f63e61 100644 (file)
@@ -1245,11 +1245,14 @@ static gchar *write_headers(PrefsAccount        *account,
                else if (status == ICAL_PARTSTAT_TENTATIVE)
                        prefix = _("Tentatively Accepted: ");
                else 
-                       prefix = "Re: ";
-       } else if (event->method == ICAL_METHOD_PUBLISH)
+                       prefix = "Re: "; 
+       } else if (event->method == ICAL_METHOD_PUBLISH) {
                method_str = "PUBLISH";
-       else
-               method_str = "REQUEST";         
+       } else if (event->method == ICAL_METHOD_CANCEL) {
+               method_str = "CANCEL";
+       } else {
+               method_str = "REQUEST";
+       }
        
        subject = g_strdup_printf("%s%s", prefix, event->summary);