diff --git a/lib/libmime/Makefile b/lib/libmime/Makefile index 27299bf9a07..3bb21f0b56b 100644 --- a/lib/libmime/Makefile +++ b/lib/libmime/Makefile @@ -52,6 +52,12 @@ CSRCS = \ addr.c \ $(NULL) +ifdef MOZ_MAIL_NEWS +CSRCS += \ + mimevcrd.c \ + $(NULL) +endif + REQUIRES = mime nspr dbm img util layer security pref js julian nls xp network include $(DEPTH)/config/rules.mk diff --git a/lib/libmime/mimei.c b/lib/libmime/mimei.c index 93012377279..54872d0d663 100644 --- a/lib/libmime/mimei.c +++ b/lib/libmime/mimei.c @@ -153,10 +153,10 @@ mime_find_class (const char *content_type, MimeHeaders *hdrs, else if (!strcasecomp(content_type+5, "plain")) class = (MimeObjectClass *)&mimeInlineTextPlainClass; #ifndef MOZILLA_30 -#if defined(MOZ_MAIL_NEWS) || defined(MOZ_MAIL_COMPOSE) +#if defined(MOZ_MAIL_NEWS) else if (!strcasecomp(content_type+5, "x-vcard")) class = (MimeObjectClass *)&mimeInlineTextVCardClass; -#endif /* MOZ_MAIL_NEWS || MOZ_MAIL_COMPOSE */ +#endif /* MOZ_MAIL_NEWS */ #ifdef MOZ_CALENDAR else if (!strcasecomp(content_type+5, "calendar")) class = (MimeObjectClass *)&mimeInlineTextCalendarClass; @@ -400,11 +400,11 @@ mime_create (const char *content_type, MimeHeaders *hdrs, { /* change content-Disposition for vcards to be inline so */ /* we can see a nice html display */ -#ifndef MOZILLA_30 +#if !defined(MOZILLA_30) && defined(MOZ_MAIL_NEWS) if (mime_subclass_p(class,(MimeObjectClass *)&mimeInlineTextVCardClass)) StrAllocCopy(content_disposition, "inline"); else -#endif /* !MOZILLA_30 */ +#endif /* !MOZILLA_30 && MOZ_MAIL_NEWS */ content_disposition = (hdrs ? MimeHeaders_get(hdrs, HEADER_CONTENT_DISPOSITION, TRUE, FALSE) diff --git a/lib/libmime/mimemoz.c b/lib/libmime/mimemoz.c index e56fb5fbff6..74d33981498 100644 --- a/lib/libmime/mimemoz.c +++ b/lib/libmime/mimemoz.c @@ -2342,7 +2342,7 @@ extern int MIME_HasAttachments(MWContext *context) } - +#ifdef MOZ_MAIL_NEWS extern NET_StreamClass * MIME_VCardConverter ( int format_out, void *closure, @@ -2445,6 +2445,7 @@ MIME_VCardConverter ( int format_out, return stream; } +#endif /* MOZ_MAIL_NEWS */