[Zope] WorldPilot - Regular messages are attachments? (PatchFix)

Bryan Stillwell arcane@verinet.com
Wed, 14 Jun 2000 11:24:43 -0600 (MDT)


  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.
  Send mail to mime@docserver.cac.washington.edu for more info.

---1865677322-129925980-961003483=:19838
Content-Type: TEXT/PLAIN; charset=US-ASCII

On Fri, 9 Jun 2000, ethan mindlace fremen wrote:

> Paul Gresham wrote:
> > 
> > Excellent, thanks Bryan. I have another question? Do you have problems with
> > browsers not obtaining the correct filenames of attachments when they are
> > downloaded, i.e. the file becomes ATT0002.DAT or similar? I have this
> > problem and also if I choose to download a file and then cancel the dialog,
> > everything seems to get stuck, and I have to close the browser and start
> > again.
> 
> I have the same problem.  All attachments, when downloaded, become "getpart".  A
> simple rename works, but I find it highly obnoxious.

Ok, I fixed the problem with files trying to be saved as ATT0001.DAT, but
they're still messed up in Mozilla (which your using, right ethan?) where
they save as getpart (I think this is a Mozilla bug, and not a WorldPilot
bug). I also fixed the bug where if it's an image (jpeg, gif, etc.) it
gets displayed instead of downloaded.  I've attached the patch which fixes
both of these problems.

I also have new RPMs of WorldPilot that has all of my patches applied so
far here: http://www.verinet.com/~arcane/worldpilot/

Bryan

-- 
http://www.tummy.com/ Consulting and Software for Linux and Unix
KRUD - Kevin's Red Hat Uber Distribution - the Freshest Red Hat every month


---1865677322-129925980-961003483=:19838
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="bryan_attachment_fixes.patch"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.4.10.10006141124430.19838@bamboo.verinet.com>
Content-Description: 
Content-Disposition: attachment; filename="bryan_attachment_fixes.patch"

LS0tIFdvcmxkUGlsb3QudmFuaWxsYS9SZXNvdXJjZS5weQlGcmkgTWFyIDEw
IDEyOjM2OjAwIDIwMDANCisrKyBXb3JsZFBpbG90Lm1pbmUvUmVzb3VyY2Uu
cHkJVHVlIEp1biAxMyAxMTo0MDo1MSAyMDAwD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