bugThe nmh Mail Handling System - Bugs: bug #15215, pick: documentation should be more...

 
 

bug #15215: pick: documentation should be more precise about how long headers are handled

Submitter:  Peter Maydell <pm215>
Submitted:  Thu 15 Dec 2005 02:18:47 PM UTC
   
 
Category:  Documentation Severity:  3 - Normal
Priority:  * 5 - Normal Status:  Fixed
Assigned to:  None Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 24 Nov 2012 03:15:10 PM UTC, comment #1: 

Fixed to properly unfold multiple-line header fields by removing newlines instead of replacing them with spaces, commit 706236baa4c4670b5a074092dec5dec63ff50663.

As far as the mh-format behavior of collapsing multiple whitespaces into one goes, here's what Ken said:

  mh-format is a bit ... weird, and TECHNICALLY it only does
  that on (most) string output.  I don't think what we do
  there should necessarily apply in pick.

So we're leaving that alone in pick.

David Levine <levine>
Group administrator
Thu 15 Dec 2005 02:18:47 PM UTC, original submission:  

[Debian bug 268744 (http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=268744)]

If you have a header line which is split over multiple physical lines, pick unfolds it by simply turning the CRLF into a space and leaving the whitespace at the start of the line intact:

mnementh$ cat >~/Mail/j/40
To: -email is unavailable-
Subject: foo
 bar

Test.
mnementh$ pick +j -sub 'foo  bar'
40

This is (a) inconsistent with RFC2822 which says that the CRLF should just be deleted (b) inconsistent with the mh-format handling, which turns all runs of multiple-whitespace into a single space.

We should at least document better what we do, and perhaps consider doing something different.

Peter Maydell <pm215>
Group administrator

 

(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-11-24 levine Open/ClosedOpen Closed
    2012-11-24 levine StatusNone Fixed
    2008-12-29 pm215 CategoryNone Documentation

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code