From andre.albsmeier@mchp.siemens.de Wed Jun  2 12:04:02 1999
Return-Path: <andre.albsmeier@mchp.siemens.de>
Received: from david.siemens.de (david.siemens.de [192.35.17.14])
	by hub.freebsd.org (Postfix) with ESMTP id D6D4E154B2
	for <FreeBSD-gnats-submit@freebsd.org>; Wed,  2 Jun 1999 12:03:55 -0700 (PDT)
	(envelope-from andre.albsmeier@mchp.siemens.de)
Received: from mail1.siemens.de (mail1.siemens.de [139.23.33.14])
	by david.siemens.de (8.9.3/8.9.3) with ESMTP id VAA27749
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 2 Jun 1999 21:03:44 +0200 (MET DST)
Received: from curry.mchp.siemens.de (curry.mchp.siemens.de [139.25.42.7])
	by mail1.siemens.de (8.9.3/8.9.3) with ESMTP id VAA08413
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 2 Jun 1999 21:03:44 +0200 (MET DST)
Received: (from daemon@localhost)
	by curry.mchp.siemens.de (8.9.3/8.9.3) id VAA25283
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 2 Jun 1999 21:03:43 +0200 (CEST)
Message-Id: <199906021903.VAA06070@internal>
Date: Wed, 2 Jun 1999 21:03:42 +0200 (CEST)
From: Andre Albsmeier <andre.albsmeier@mchp.siemens.de>
To: FreeBSD-gnats-submit@freebsd.org
Subject: Fix for mutt sending content-type video attachments
X-Send-Pr-Version: 3.2

>Number:         11996
>Category:       ports
>Synopsis:       Fix for mutt sending content-type video attachments
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    obrien
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jun  2 12:10:00 PDT 1999
>Closed-Date:    Mon Aug 23 17:42:33 PDT 1999
>Last-Modified:  Mon Aug 23 17:42:48 PDT 1999
>Originator:     Andre Albsmeier
>Release:        FreeBSD 3.2-STABLE i386
>Organization:
>Environment:

Current mutt port (but older ones as well)

>Description:

There is a bug in the mutt sources for quite a while now which hits
when attaching something of content-type video. In mime.h we find
the types defined as enum. They go up to 8 for TYPEVIDEO. In mutt.h
in line 509 the component type of the BODY structure is defined with
only 3 bits:

  unsigned int type : 3;        /* content-type primary type */
  unsigned int encoding : 3;    /* content-transfer-encoding */
  unsigned int disposition : 2; /* content-disposition */

So TYPEVIDEO is always mapped to TYPEOTHER. I have send a message
to the mutt developers but never got a reply. Now I think it
might good to patch this thing in the port.

---
[Should probably send another message to the mutt developers, then
   - ed, hoek]
---

>How-To-Repeat:

Send the file bla.avi with mutt

>Fix:
	
--- mutt.h.orig	Thu Apr 22 11:52:35 1999
+++ mutt.h	Thu May 27 20:53:58 1999
@@ -506,7 +506,7 @@
 				 * encoding update.
 				 */
   
-  unsigned int type : 3;        /* content-type primary type */
+  unsigned int type : 4;        /* content-type primary type */
   unsigned int encoding : 3;    /* content-transfer-encoding */
   unsigned int disposition : 2; /* content-disposition */
   unsigned int use_disp : 1;    /* Content-Disposition field printed? */



>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports->obrien 
Responsible-Changed-By: hoek 
Responsible-Changed-When: Wed Jun 2 16:49:06 PDT 1999 
Responsible-Changed-Why:  
over to maintainer 
State-Changed-From-To: open->closed 
State-Changed-By: obrien 
State-Changed-When: Mon Aug 23 17:42:33 PDT 1999 
State-Changed-Why:  
problem has been fixed in later mutt's. 
>Unformatted:
