[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Nmh-workers] some indexing results

From: Paul Vixie
Subject: Re: [Nmh-workers] some indexing results
Date: Tue, 08 Feb 2011 19:26:31 +0000

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.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]