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: ports/11996: Fix for mutt sending content-type video attachments Message-ID: <199906021903.VAA06070@internal>
next in thread | raw e-mail | index | archive | help
>Number: 11996 >Category: ports >Synopsis: Fix for mutt sending content-type video attachments >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Jun 2 12:10:00 PDT 1999 >Closed-Date: >Last-Modified: >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. >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: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199906021903.VAA06070>