From owner-freebsd-ports Wed Jun 2 12:10: 6 1999 Delivered-To: freebsd-ports@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id E8738153AE for ; Wed, 2 Jun 1999 12:10:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id MAA85206; Wed, 2 Jun 1999 12:10:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from david.siemens.de (david.siemens.de [192.35.17.14]) by hub.freebsd.org (Postfix) with ESMTP id D6D4E154B2 for ; 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 ; 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 ; 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 ; 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 To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: ports/11996: Fix for mutt sending content-type video attachments Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >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