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

Submitted by:  Peter Maydell <pm215>
Submitted on:  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

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


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>
Project Member
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

mnementh$ pick +j -sub 'foo bar'

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>
Project Administrator


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

Attach Files:

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)

    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    Sat 24 Nov 2012 03:15:10 PM UTC levine Open/ClosedOpen => Closed
    Sat 24 Nov 2012 03:15:09 PM UTC levine StatusNone => Fixed
    Mon 29 Dec 2008 10:38:47 PM UTC pm215 CategoryNone => Documentation

    Back to the top

    Powered by Savane 3.3