6.0.0-alpha10
5/17/25

[#5367] download all attachments as .zip contains only last file in list
Summary download all attachments as .zip contains only last file in list
Queue IMP
Queue Version 4.1.4
Type Bug
State Resolved
Priority 1. Low
Owners slusarz (at) horde (dot) org
Requester krause (at) biochem (dot) mpg (dot) de
Created 05/16/2007 (6576 days ago)
Due
Updated 06/11/2007 (6550 days ago)
Assigned 05/22/2007 (6570 days ago)
Resolved 06/11/2007 (6550 days ago)
Milestone
Patch No

History
06/11/2007 11:22:45 PM Michael Slusarz Comment #5
State ⇒ Resolved
Reply to this comment
fixed in HEAD.  I really don't want to touch the code in 4.1.x since 
the codebases are by now so divergent so the change will not be made 
there.  For reference, here is the change:

http://cvs.horde.org/diff.php/imp/lib/MIME/Contents.php?r1=1.254&r2=1.255&ty=u
05/22/2007 06:50:40 PM Jan Schneider Assigned to Michael Slusarz
State ⇒ Assigned
 
05/22/2007 06:43:32 PM krause (at) biochem (dot) mpg (dot) de Comment #4 Reply to this comment
a more precise description of the bug (did not test the conditions 
under which it occurs thourough enough, sorry for that!



the error occurs with any kind of attached file type, but _only_ if 
the message itself is empty (i have sent some logfiles/reports as 
attachments from a script without message body), and only the _first_ 
attachment is missing (i always did only sent two attachments, sorry 
again for the lack of in-depth analysis).



example full-text of a message with just attachments and no body which 
raises the problem:

---- start of mail

Return-Path: <krause@biochem.mpg.de>

X-Original-To: krause@biochem.mpg.de

Delivered-To: krause@biochem.mpg.de

Received: from localhost (unknown [127.0.0.1])

        by mail01.biochem.mpg.de (Postfix) with ESMTP id C62301C000083

        for <krause@biochem.mpg.de>; Tue, 22 May 2007 18:31:03 +0000 (UTC)

Received: from mail01.biochem.mpg.de ([127.0.0.1])

  by localhost (mail01 [127.0.0.1]) (amavisd-new, port 10024) with ESMTP

  id 23129-03 for <krause@biochem.mpg.de>;

  Tue, 22 May 2007 20:31:01 +0200 (CEST)

Received: from pclx323.biochem.mpg.de (pclx323.biochem.mpg.de [10.251.0.17])

        by mail01.biochem.mpg.de (Postfix) with ESMTP id 7C18C1C000085

        for <krause@biochem.mpg.de>; Tue, 22 May 2007 20:31:01 +0200 (CEST)

Received: by pclx323.biochem.mpg.de (Postfix, from userid 0)

        id 3E01FAF5D7; Tue, 22 May 2007 20:31:05 +0200 (CEST)

Date: Tue, 22 May 2007 20:31:05 +0200

To: krause@biochem.mpg.de

Subject: test

User-Agent: nail 11.25 7/29/05

MIME-Version: 1.0

Content-Type: multipart/mixed;

  boundary="=_465336e9.JUTFERq4X+hifFcndYp0WwskcVtvWnndgO+vATXKttTAYnCa"

Message-Id: <20070522183105.3E01FAF5D7@pclx323.biochem.mpg.de>

From: krause@biochem.mpg.de (krause)

X-Virus-Scanned: by amavisd-new at biochem.mpg.de



This is a multi-part message in MIME format.



--=_465336e9.JUTFERq4X+hifFcndYp0WwskcVtvWnndgO+vATXKttTAYnCa

Content-Type: text/plain

Content-Transfer-Encoding: quoted-printable

Content-Disposition: attachment;

  filename="Test 1.txt"



text 1=



--=_465336e9.JUTFERq4X+hifFcndYp0WwskcVtvWnndgO+vATXKttTAYnCa

Content-Type: text/plain

Content-Transfer-Encoding: quoted-printable

Content-Disposition: attachment;

  filename="Test 2.txt"



text 2=



--=_465336e9.JUTFERq4X+hifFcndYp0WwskcVtvWnndgO+vATXKttTAYnCa

Content-Type: text/plain

Content-Transfer-Encoding: quoted-printable

Content-Disposition: attachment;

  filename="Test 3.txt"



text 3=



--=_465336e9.JUTFERq4X+hifFcndYp0WwskcVtvWnndgO+vATXKttTAYnCa--

--- end of mail



it seems that the funktion for extracting the attachments always 
ignores the first part, which normally would be the message text ...


05/22/2007 06:37:30 PM krause (at) biochem (dot) mpg (dot) de Comment #3 Reply to this comment
Works with imp cvs-HEAD and framework cvs-HEAD.

Does this happen with all mails/attachments or only certain ones?

Thomas
it happens regardless of the type of attachment (but i do have to 
describe the bug more precisly, see next comment ... sorry for the 
weak report!)


05/17/2007 12:30:02 PM thomas (dot) jarosch (at) intra2net (dot) com Comment #2 Reply to this comment
Works with imp cvs-HEAD and framework cvs-HEAD.



Does this happen with all mails/attachments or only certain ones?



Thomas


05/16/2007 02:57:38 PM krause (at) biochem (dot) mpg (dot) de Comment #1
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ download all attachments as .zip contains only last file in list
Queue ⇒ IMP
State ⇒ Unconfirmed
Reply to this comment
when displaying a message with several attachments (via message.php)

there is a line called "Download All Attachments (in zip file)" which

should create a zip file with _all_ attachments of this

message. But only the _last_ attachment listed is actually in the zip

file!


Saved Queries