>Today, I downloaded four archived ".eml" files from mailarchive.ietf.org, so
>that I could work with a thread from July.    After "inc -file XXX" on them,
>I noticed that the results have CRLF. That is, I see ^M on every line in mh-e.
>Ick.  So we have an assumption that local files are in local line-ending.
>
>{I should have just booted up thunderbird, and used the imap interface to
>mailarchive...}
>
>Yeah, I can run "dos2unix" on them, or tr -d...
>I feel that perhaps inc should just do the right thing: CR is just whitespace.

I agree with you, but when it comes to this particular issues others
disagree.  But, sadly, as with many things in nmh this issue is a bit
tricky to deal with given how this code is shared with other code in the
nmh codebase.  Also, it sounds to me like inc DID treat CR as whitespace
so you could argue that it did the right thing?

The details are tricky.  How, exactly, should a CR be treated?

- Just as whitespace (which it sounds like did)?
- Silently deleted if it precedes a CR and as whitespace otherwise?
- Something else?

--Ken

Reply via email to