nmh-workers
[Top] [All Lists]

Re: format and output all received: lines in an e-mail message

2019-11-20 08:22:51
Hi Paul,

greg wrote:
then, i'd like to use something like fmttest(1) to print out all the
"Received:" lines in an e-mail message.  ideally, each "Received:"
line would come out on a separate line; less ideally, but i'm sure
very

Is strict use of only MH tools a requirement for some reason?  Because
if not, then this does a pretty good job:
    show -noshowproc |sed -n -e '/^$/q' -e '/^Received:/p' 

Fields can be continued by starting the next line with white-space,
and Received fields are often continued.  :-)

-- 
Cheers, Ralph.


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