2009-01-08 18:03:16 +01:00
|
|
|
Index: plugins/itip-formatter/itip-formatter.c
|
|
|
|
===================================================================
|
2009-12-18 13:57:58 +01:00
|
|
|
--- plugins/itip-formatter/itip-formatter.c.orig
|
|
|
|
+++ plugins/itip-formatter/itip-formatter.c
|
|
|
|
@@ -2164,6 +2164,12 @@ in_proper_folder (CamelFolder *folder)
|
|
|
|
!em_utils_folder_is_drafts (folder, uri)));
|
|
|
|
}
|
2009-01-08 18:03:16 +01:00
|
|
|
|
|
|
|
+ /*FIXME: GW needs to set the drafts_folder_uri and sent_folder_uri properly.
|
|
|
|
+ A workaround till then */
|
|
|
|
+ if (res && (!g_ascii_strcasecmp (folder->name, _("Sent")) ||
|
|
|
|
+ !g_ascii_strcasecmp (folder->name, _("Sent Items"))))
|
|
|
|
+ res = 0;
|
|
|
|
+
|
|
|
|
g_free (uri);
|
|
|
|
|
|
|
|
return res;
|
2009-12-18 13:57:58 +01:00
|
|
|
@@ -2210,6 +2216,15 @@ format_itip_object (EMFormatHTML *efh, G
|
2009-01-08 18:03:16 +01:00
|
|
|
|
|
|
|
response_enabled = in_proper_folder (((EMFormat*)efh)->folder);
|
|
|
|
|
|
|
|
+ /* Do not display Accept/Decline Buttons if its a forwarded meeting request */
|
|
|
|
+ if (response_enabled) {
|
|
|
|
+ CamelMimeMessage *msg = info->msg;
|
|
|
|
+ const char *subject = camel_mime_message_get_subject (msg);
|
|
|
|
+
|
|
|
|
+ if (!g_ascii_strncasecmp (subject, _("[Fwd: "), 6))
|
|
|
|
+ response_enabled = 0;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
if (!response_enabled) {
|
|
|
|
itip_view_set_mode (ITIP_VIEW (info->view), ITIP_VIEW_MODE_HIDE_ALL);
|
|
|
|
} else {
|