[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#176606: elm-me+: wishlist: support for non compliant MIME headers



Package: elm-me+
Version: 2.4pl25ME+100-1.woody.ed.0
Severity: wishlist

Could you add the very simple patch below to allow ELM to decode MIME headers
that don't expose a MIME-Version field? Some of the mails I receive every day
contain only a Content-Type field in their header but no MIME-Version.
This patch allow to ELM take into account such emails and proceed them through
internal or metamail decoder.

Thanks in advance.

diff -ur elm-me+-2.4pl25ME+100.old/lib/headers.c elm-me+-2.4pl25ME+100/lib/headers.c
--- elm-me+-2.4pl25ME+100.old/lib/headers.c	Sun Dec 15 11:00:25 2002
+++ elm-me+-2.4pl25ME+100/lib/headers.c	Sat Jan 11 20:08:24 2003
@@ -771,6 +771,12 @@
 
 	free_rfc822tokenized(tokens);
     }    
+    else if (NULL != (tmphdr = locate_header_by_name(result,"Content-Type"))) {
+	/* Content-Type header field defined but no MIME-Version
+	 * -> Accept it but give warning when message is viewed or replied.
+	 */
+	entry->status |= MIME_MESSAGE|MIME_UNSUPPORTED;
+    }
 
     if (NULL != (tmphdr = locate_header_by_name(result,
 						"X-ELM-OSV"))) {

-- System Information
Debian Release: 3.0
Kernel Version: Linux jazz 2.4.18-k7 #2 Wed Mar 20 20:28:54 EST 2002 i686 unknown

Versions of the packages elm-me+ depends on:
ii  exim           3.35-1         An MTA (Mail Transport Agent)
ii  libc6          2.2.5-11.2     GNU C Library: Shared libraries and Timezone
ii  libncurses5    5.2.20020112a- Shared libraries for terminal handling
ii  libssl0.9.6    0.9.6c-2.woody SSL shared libraries
ii  exim           3.35-1         An MTA (Mail Transport Agent)
	^^^ (Provides virtual package mail-transport-agent)



Reply to: