bugThe nmh Mail Handling System - Bugs: bug #11160, mhstore Overwrites its Previous...

 
 

bug #11160: mhstore Overwrites its Previous Files.

Submitter:  Ralph Corderoy <ralph>
Submitted:  Mon 29 Nov 2004 10:09:32 AM UTC
   
 
Category:  Enhancement Severity:  3 - Normal
Priority:  * 5 - Normal Status:  Fixed
Assigned to:  None Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 15 Sep 2012 06:44:30 PM UTC, comment #1: 

Fixed for the release after 1.5, commit dd1c5703125bb10f78add2488ce32e83c523cfbb.

David Levine <levine>
Group administrator
Mon 29 Nov 2004 10:09:32 AM UTC, original submission:  

Hi,

Should mhstore protect itself from

    MIME-Version: 1.0
    Content-Type: multipart/mixed; boundary="part1_0.dc503142.259d2bb2_boundary"
    X-Mailer: AOL 3.0.1 for Mac sub 84

    --part1_0.dc503142.259d2bb2_boundary
    Content-Type: text/plain; charset="us-ascii"
    Content-Transfer-Encoding: quoted-printable

    ...

    --part1_0.dc503142.259d2bb2_boundary
    Content-Type: multipart/appledouble; name="foo"; X-Mac-Creator="3842494d";
            X-Mac-Type="4a504547"; boundary="ad_45416526_boundary"

    --ad_45416526_boundary
    Content-Type: application/applefile; name="foo"; X-Mac-Creator="3842494d";
            X-Mac-Type="4a504547"
    Content-Transfer-Encoding: base64

    ...

    --ad_45416526_boundary
    Content-Type: image/jpeg; name="foo"
    Content-Transfer-Encoding: base64
    Content-Disposition: inline; filename="foo"

    ...

    --ad_45416526_boundary--

    --part1_0.dc503142.259d2bb2_boundary--

Plain mhstore creates

    1.1.txt
    1.2.1.applefile
    1.2.2.jpeg

but add -auto and it uses the filename `foo' above quite a bit resulting
in the applefile being overwritten by the jpeg.

Commands like wget(1) will add suffixes, I wonder if mhstore should also
do something, assuming the above MIME is legal.

Cheers,


Ralph.

[Originally posted to nmh-workers.]

Ralph Corderoy <ralph>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by levine (Posted a comment)
  • -email is unavailable- added by pm215 (Updated the item)
  •  

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2012-09-15 levine StatusNone Fixed
        Open/ClosedOpen Closed
    2008-12-29 pm215 CategoryNone Enhancement

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code