the output of "sendmail -bh" seems to be hardcoded for an 80 characters wide terminal. This is a pity, since it means I don't get to see valueable information even though my terminal is a lot wider. Wichert.
try sendmail -bh -v, the 'results' column then will be limited to 79 chars which should be enough for just about anything: sendmail -bh -v -------------- Hostname --------------- How long ago ---------Results--------- zardoc.endmail.org 5+02:35:02 250 2.0.0 e4BJiWj06409 Message accepted for delivery northrelay03.pok.ibm.com 06:35:32 250 LAA128246 Message accepted for delivery westrelay03.boulder.ibm.com 1+02:21:47 OK southrelay03.raleigh.ibm.com 1+01:17:51 OK lexvm2.raleigh.ibm.com 1+01:33:56 250 Mail Delivered
reopen 64229 thanks Previously Richard A Nelson wrote: Better, but still not good enough. Hostname can be up to 255 characters long so you still have no way to see everything. What I would like sendmail to do is check the width of the tty use that to layout its output. For an example of how to do that see main/enquiry.c in the dpkg source. Wichert.
Previously Richard A Nelson wrote: Only if you make it so :). For dpkg I use fixed relative sizes for the column so I can easily calculate their width. It's not really optimal but it is simple. The alternative would be to walk over the complete output once first to grab the maximum needed column widths, but that can be an expensive operation. Wichert.
Heh, sorry 'bout that, thought I had it covered hrm... will that automagically handle (sorry, on wrong box now) two variable length fields (hostname, result)? I'll take a peek, but I'm off to a wedding Thu-Mon... so It'll probably be mid-next week