From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13987 invoked from network); 14 Apr 2005 22:55:00 -0000 Received: from unknown (HELO lists.gnu.org) (199.232.76.165) by sourceware.org with SMTP; 14 Apr 2005 22:55:00 -0000 Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DMDEj-0007km-Dw for listarch-gnats-devel@sources.redhat.com; Thu, 14 Apr 2005 18:55:01 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DMDDF-0007Lb-Vf for help-gnats@gnu.org; Thu, 14 Apr 2005 18:53:33 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DMDD0-0007Fg-WD for Help-gnats@gnu.org; Thu, 14 Apr 2005 18:53:15 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DMDD0-0007AV-LB for Help-gnats@gnu.org; Thu, 14 Apr 2005 18:53:14 -0400 Received: from [128.138.129.100] (helo=edgar1.colorado.edu) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DMD3g-0004UB-HB for Help-gnats@gnu.org; Thu, 14 Apr 2005 18:43:37 -0400 Received: from leda (leda.colorado.edu [128.138.106.56]) by edgar1.colorado.edu (8.12.10/8.12.10/ITS-6.0/test-student) with ESMTP id j3EMgpbe017722 for ; Thu, 14 Apr 2005 16:42:51 -0600 (MDT) Message-Id: <200504142242.j3EMgpbe017722@edgar1.colorado.edu> From: "Pamme Crandall" To: Date: Thu, 14 Apr 2005 22:55:00 -0000 Organization: LASP MIME-Version: 1.0 X-Mailer: Microsoft Office Outlook, Build 11.0.6353 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Thread-Index: AcVBQzGfWC/WGbtzRmWqCeWfbwIsNg== Cc: Subject: help with file attachments X-BeenThere: help-gnats@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion about GNU GNATS List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============1068714153==" Sender: help-gnats-bounces+listarch-gnats-devel=sources.redhat.com@gnu.org Errors-To: help-gnats-bounces+listarch-gnats-devel=sources.redhat.com@gnu.org X-SW-Source: 2005-q2/txt/msg00005.txt.bz2 This is a multi-part message in MIME format. --===============1068714153== Content-Type: multipart/alternative; boundary="----=_NextPart_000_0007_01C54110.EA586170" This is a multi-part message in MIME format. ------=_NextPart_000_0007_01C54110.EA586170 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-length: 1680 I'm having trouble viewing file attachments using gnatsweb 4.0 and gnats 4.1, and I was wondering if anyone knows what might be going wrong. We've entered the following command as administrator. perl -MCPAN -e 'install MIME::Base64' I modified the pr.c file using Yngve Svendsen's some of Yngve Svendsen's code (below) that I found. Then I ran the Makefile. I can add an attachment and its path shows up in the email that gets sent to gnats-admin, but I don't seem to be able to view the file. Does anyone have any suggestions? Thanks for your help. Pamme ---------------------------------------------------------------------------- ------------------------------------------------------------ Index: pr.c =================================================================== RCS file: /cvs/gnats/gnats/gnats/pr.c,v retrieving revision 1.57 diff -u -p -r1.57 pr.c --- pr.c 2000/08/23 19:55:22 1.57 +++ pr.c 2001/03/22 21:51:58 @@ -435,9 +435,11 @@ addLineToPR (PR *pr, char *buffer, char /* Insert a space if there isn't one already. */ if (prv->multiFieldIndex == UNFORMATTED (pr->database) && line[0] != ' ') + + /* YS: */ { - prv->buffer[prv->bufferLen] = ' '; - prv->bufferLen++; + /* prv->buffer[prv->bufferLen] = ' '; */ + /* prv->bufferLen++; */ } memcpy (prv->buffer + prv->bufferLen, line, linelen); prv->bufferLen += linelen; ---------------------------------------------------------------------------- ------------------------------------------- ------=_NextPart_000_0007_01C54110.EA586170 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-length: 9761

I’m having trouble viewing file attachments using gnatsweb 4.0 and gnats 4.1, and I was wondering if anyone knows what might = be going wrong. 

 

We’ve entered the following command as administrat= or. 

 

p= erl -MCPAN -e 'install MIME::Base64'

<= o:p> 

I modified the pr.c file using Yngve Svendsen’s some of Yngv=
e Svendsen’s code (below)
th=
at I found.  Then I ran the Makefile.  I can add an attachment an=
d its path shows up in the email that gets sent to gnats-admin, but I don&#=
8217;t seem to be able to view the file.  Does anyone have any suggest=
ions?
 
Th=
anks for your help.
 
Pa=
mme

 

 

-= ---------------------------------------------------------------------------= ------------------------------------------------------------

Index: pr.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvs/gnats/gnats/gnats/pr.c,v
retrieving revision 1.57
diff -u -p -r1.57 pr.c
--- pr.c        2000/=
08/23 19:55:22     1.57
+++ pr.c        2001/=
03/22 21:51:58
@@ -435,9 +435,11 @@ addLineToPR (PR *pr, char *buffer, =
char
         &n=
bsp; /* Insert a space if there isn't one already.  */
         &n=
bsp; if (prv->multiFieldIndex =3D=3D UNFORMATTED (pr->database)<=
/o:p>
         &n=
bsp;     && line[0] !=3D ' ')=
+
+         &=
nbsp;     /* YS: */
<= pre>         &n= bsp;   {
-         &=
nbsp;   prv->buffer[prv->bufferLen] =3D ' ';
-         &=
nbsp;   prv->bufferLen++;
+         &= nbsp;       /*     &= nbsp;    prv->buffer[prv->bufferLen] =3D ' '; */<= /o:p>
+         &=
nbsp;       /*     &=
nbsp;    prv->bufferLen++; */
         &n=
bsp;   }
         &n=
bsp; memcpy (prv->buffer + prv->bufferLen, line, linelen);=
         &n=
bsp; prv->bufferLen +=3D linelen;

-= ---------------------------------------------------------------------------= -------------------------------------------

------=_NextPart_000_0007_01C54110.EA586170-- --===============1068714153== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline Content-length: 140 _______________________________________________ Help-gnats mailing list Help-gnats@gnu.org http://lists.gnu.org/mailman/listinfo/help-gnats --===============1068714153==--