Bug 16029

Summary: showpartial fails
Product: [Retired] Red Hat Linux Reporter: Göran Uddeborg <goeran>
Component: metamailAssignee: Preston Brown <pbrown>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 7.0   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-02-01 18:14:59 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Sugggested changes none

Description Göran Uddeborg 2000-08-11 20:54:18 UTC
The showpartial script, called when applying metamail to a message/partial
message, fails to recreate the complete message.

1. When being called, it always prints an error message:
    tr: invalid backslash escape at end of string

2. After receiving all parts, it fails when trying to collect them:

    ---Executing: showpartial
    tr: invalid backslash escape at end of string
    cat:  1 2 3 4 5: No such file or directory
    rm: cannot remove ` 1 2 3 4 5': No such file or directory
    All parts of this 5-part message have now been read.
    metamail: Could not find end of mail headers.
    WARNING: To save space, the full file is now being deleted.
    You will have to read all 5 parts again to see the full message again.
    rmdir: /tmp/m-prts-gvran: Directory not empty
    metamail: Could not find end of mail headers.
    Exit 255

The second problem seems to be caused by the "ohnonotagain" (:-) patch
quoting a bit too much.  The $list variable is a sequence of numbers (1 2 3
...).  It won't contain any strange characters so it won't need quoting,
and the effect is to interpreting what is supposed to be a list of files as
a single file name with spaces.

See the enclosed patch for details.

Comment 1 Göran Uddeborg 2000-08-11 20:55:32 UTC
Created attachment 2415 [details]
Sugggested changes

Comment 2 Göran Uddeborg 2000-08-13 19:44:30 UTC
The same problem still exist in the pinstripe version of metamail: 2.7-25

Comment 3 Preston Brown 2001-02-01 18:14:54 UTC
fixed in 2.7-26 and later.  Thank you very much for the patch.