Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.

Bug 85860

Summary: Cannot view or download attachments.
Product: [Retired] Red Hat Linux Reporter: Need Real Name <>
Component: squirrelmailAssignee: Gary Benson <gbenson>
Status: CLOSED ERRATA QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: 8.0CC: dsavage, graham, jim
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-04-24 20:36:57 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Need Real Name 2003-03-09 17:50:09 UTC
Description of problem: 
Viewing a message with attachments does not show the attachments, even if the 
option to view attachments inline is selected, specifically selected the view attachment 
link also does not display the attachment.  Also, trying to download an attachment by 
clicking on the download link results in a parse error on line 337 of 
/usr/share/squirrelmail/src/download.php.  A quick view of this file reveals a simple 
bracketing error (I think). 
Version-Release number of selected component (if applicable): 
How reproducible: 
Steps to Reproduce: 
1. Install squirrelmail, view a message with an image attachment (gif, for example), the 
message is not displayed inline even if this option has been selected. 
2. Click on the view link beside the attachment at the bottom of the message, the 
resulting page dose not display the attachment as expected. 
3. Click on the download link to save the attachment to your computer, a parse error 
occurs on line 337 of /usr/share/squirrelmail/src/download.php. 
Actual results: 
As above 
Expected results: 
The attachment should be displayed when view is selected. The user should be 
prompted with a save as dialog when download is selected. 
Additional info: 
A patch to fix the download option is included here: 
*** /usr/share/squirrelmail/src/download.php.old        2003-03-09 
17:31:24.000000000 +0000 
--- /usr/share/squirrelmail/src/download.php    2003-03-09 17:19:49.000000000 
*** 334,340 **** 
          $suffix = $type1; 
!     $filename = 'untitled' . strip_tags($passed_ent_id) .$suffix); 
--- 334,340 ---- 
          $suffix = $type1; 
!     $filename = 'untitled' . strip_tags($passed_ent_id) .$suffix; 

Comment 1 Gary Benson 2003-03-10 09:41:16 UTC

*** This bug has been marked as a duplicate of 82600 ***

Comment 2 Gary Benson 2003-03-13 09:36:45 UTC
Use 1.2.10-4 from rawhide which fixes this problem.

Comment 3 Gary Benson 2003-03-13 09:37:05 UTC
*** Bug 86043 has been marked as a duplicate of this bug. ***

Comment 4 Jim Mikles 2003-03-20 18:56:56 UTC
The download.php file in /usr/share/squirrelmail/src is damaged. The corredt
file can be extracted from the squirrelmail-1.2.11.tar.gz available at  The rpm file should be rebuilt!

Comment 5 Graham Freeman 2003-03-31 22:49:30 UTC
I'm having the exact same problem, whether the attachment is a multimegabyte PDF
or a 760-byte text file.

This is a disturbingly glaring error, and I'm surprised it got by QA.  File
attachments are an everyday part of using e-mail for many, many people.

When will a fix be issued?

-Graham Freeman

Comment 6 Graham Freeman 2003-03-31 22:51:18 UTC
Clarification of my question:  When will a fix be issued via RHN?  That's why I
pay my subscription money, after all.

-Graham Freeman

Comment 7 Gary Benson 2003-04-01 08:51:52 UTC
A fix will be issued over RHN at some stage.

Comment 8 Mark J. Cox 2003-04-24 20:36:58 UTC
An errata has been issued which should help the problem described in this bug report. 
This report is therefore being closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files, please follow the link below. You may reopen 
this bug report if the solution does not work for you.