nmh-workers
[Top] [All Lists]

Re: [Nmh-workers] some indexing results

2011-02-08 13:26:44
format=flowed is now considered as the implicit default by some readers
notably apple's Mail.app, because so many senders use the format without
saying so in their mime headers.  MH needs to adapt to current conditions.
this probably means some heuristic where if the text looks like nonwrapped
paragraphs then format=flowed is presumed, unless some CLI option overrides
this.  for example, a new show -autowrap / -noautowrap option defaulting
to -noautowrap if !isatty(STDOUT_FILENO) and to -autowrap otherwise.

i think "show | patch" should work, but that's what isatty() is for.  one
of my major surprises in mhshow is that it does not call isatty() to find
out whether to default to -nopause, which show does for -nomoreproc.  i'd
like to see MH go back to the point where most of the time it just does the
right thing for interactive shell users and script writers are the ones
overriding the defaults.  "show | patch" is an example of how we'd never
automatically call "fmt" because isatty() would see that stdout is a pipe.

_______________________________________________
Nmh-workers mailing list
Nmh-workers(_at_)nongnu(_dot_)org
http://lists.nongnu.org/mailman/listinfo/nmh-workers

<Prev in Thread] Current Thread [Next in Thread>