[imp] Problem downloading attachments with spaces in
names(only with Netscape/Firebird)
Tim Meader
tmeader at cne-odin.gsfc.nasa.gov
Tue Oct 28 09:30:28 PST 2003
Yes, this is a problem with the way in which IMP handles file attachments.
I actually opened a bug in Mozilla (ie - Netscape 6+) about this. It seems
that the Mozilla guys recently changed the way in which any Mozilla after
1.4 parses the "Content-xxxxxxx" headers. This isn't a Mozilla bug though,
as the way they do it now is actually the way it should have been all
along. What they changed was that they now require anything after a
Content-xxxxxx header to be in quotes if it has spaces in the name. In
particular, the Content-Disposition headers that IMP doles out don't have
double quotes around the part after "name=". What I did was change the file
horde/lib/MIME/Part.php where it has Content-Disposition to be:
$headers['Content-Disposition'] = $this->disposition . '; filename="' .
$this->name . '"';
The files horde/lib/Browser.php and Data.php where they have
Content-Disposition basically change anyplace that has filename='.$filename
to be filename="'.$filename.'"'
Do the same thing for the file horde/imp/lib/Browser.php.
I would submit a patch for this, but not exactly sure how. Hopefully one of
the developers can make these few changes real quick to the RELENG CVS for
the next release. Because this is a BIG issue for anything after Mozilla
1.4. Thus Netscape 7.1 and .2 are fine... but Mozilla 1.5 and Firebird 0.7
are having this problem, and ALL future Mozilla releases as they said they
are NOT changing the parsing code back.
The "bug" in reference to this is:
http://bugzilla.mozilla.org/show_bug.cgi?id=222438
At 06:22 PM 10/27/2003, you wrote:
>If I get an attachment like:
>
>thank you quote.doc application/msword 26.00 KB
>
>When I press the save button in IMP in save as screen it says "thank" filename
>and "you" as file extension. This does not happen with IE, only with Netscape
>and Firebird. Any ideas how I can fix that?
>
>Apolinaras "Apollo" Sinkevicius
>
>-------------------------------------------------
>Visit CARMEL MUSIC & ENTERTAINMENT website http://carmelme.com
>
>--
>IMP mailing list
>Frequently Asked Questions: http://horde.org/faq/
>To unsubscribe, mail: imp-unsubscribe at lists.horde.org
---
Tim Meader
CNE Unix Group
ACS Government Services, Inc. - (301) 286-8013
Tim.Meader at gsfc.nasa.gov
More information about the imp
mailing list