nmh-workers
[Top] [All Lists]

Re: [Nmh-workers] Multi-homed postproc, v2

2015-03-12 20:55:10
[Sorry, inadvertently sent an early version of this reply while
 testing the script!]

On Thu, 12 Mar 2015 20:47:10 -0400 Ken Hornstein <kenh(_at_)pobox(_dot_)com> 
sez:

Hi Bob,

with:  for some reason, bash seems to only save C-1
characters of output, where C is the number of columns in the
xterm in which I'm running the script.

No, I don't think bash does that.

As Ralph pointed out, bash simply does not have anything to do with
truncating the output ... if it's a Unix pipe it's not even involved
(after the file descriptors are established).

Ah, good.  I was quite confused on this point!

Now, there is a wrinkle here.  _IF_ you're using scan(1), by
default it will truncate output at the terminal width.  See the
-width option to scan(1) to change that.  Buuutttt .... IF
you're doing whom(1) on the draft, then a) every email address
ends up on it's own line, and b) whom(1) (really, post(8)) does
NOT truncate the output at the terminal width.  I looked at the
code AND I just double-checked that to make sure.  So it sure
would be interesting to understand exactly what is happening.

That was it!  It was scan(1), under the default width (because I
was not using -width).

And, confession time: I didn't check to see whether the problem
was also occurring with whom(1), since I had already spent more
than an hour unsuccessfully trying to solve the problem and was
going to be late for an appointment.

Thanks!

                                Bob

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

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