summaryrefslogtreecommitdiff
path: root/pith/mimedesc.c
diff options
context:
space:
mode:
Diffstat (limited to 'pith/mimedesc.c')
-rw-r--r--pith/mimedesc.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/pith/mimedesc.c b/pith/mimedesc.c
index ab47770d..6d5999c4 100644
--- a/pith/mimedesc.c
+++ b/pith/mimedesc.c
@@ -252,7 +252,8 @@ describe_mime(struct mail_bodystruct *body, char *prefix, int num,
* be expensive to test...
*/
if((body->type == TYPETEXT && !named)
- || MIME_VCARD(body->type,body->subtype)){
+ || MIME_VCARD(body->type,body->subtype)
+ || MIME_VCALENDAR(body->type, body->subtype)){
a->test_deferred = 1;
a->can_display = MCD_INTERNAL;
}
@@ -264,7 +265,8 @@ describe_mime(struct mail_bodystruct *body, char *prefix, int num,
/*
* Deferred means we can display it
*/
- a->shown = ((a->can_display & MCD_INTERNAL)
+ a->shown = MIME_VCALENDAR(body->type, body->subtype)
+ || ((a->can_display & MCD_INTERNAL)
&& !MIME_VCARD(body->type,body->subtype)
&& (!named || multalt
|| (body->type == TYPETEXT && num == 1