nmh-workers
[Top][All Lists]
Advanced

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

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


From: Andy Bradford
Subject: Re: format and output all received: lines in an e-mail message
Date: 21 Nov 2019 07:27:09 -0700

Thus said Greg Minshall on Wed, 20 Nov 2019 10:41:34 +0530:

> 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
> practical, a very  long line would come out, with  some odd ascii code
> separating the individual lines.

I usually use  822field (from mess822 [1]) for this  kind of thing which
takes all received lines and reformats them one per line (odd ascii code
separating them is a newline).

For example, your message looks like:

$ 822field received < `mhpath cur` | tail -6           
 from eggs.gnu.org ([2001:470:142:3::10]:33280) by lists.gnu.org with esmtp 
(Exim 4.90_1) (envelope-from <address@hidden>) id 1iXIOr-0005CP-UD for 
address@hidden; Wed, 20 Nov 2019 00:19:34 -0500
 from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from 
<address@hidden>) id 1iXIOq-00089z-NS for address@hidden; Wed, 20 Nov 2019 
00:19:33 -0500
 from hiwela.pair.com ([209.68.5.201]:21038) by eggs.gnu.org with esmtp (Exim 
4.71) (envelope-from <address@hidden>) id 1iXIOq-00088d-K6 for address@hidden; 
Wed, 20 Nov 2019 00:19:32 -0500
 from hiwela.pair.com (localhost [127.0.0.1]) by hiwela.pair.com (Postfix) with 
ESMTP id 001419805E3 for <address@hidden>; Wed, 20 Nov 2019 00:11:43 -0500 (EST)
 from minshall-entroware-apollo.cliq.com (unknown [59.95.74.169]) (using 
TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client 
certificate requested) by hiwela.pair.com (Postfix) with ESMTPSA id 89AEF8F084C 
for <address@hidden>; Wed, 20 Nov 2019 00:11:43 -0500 (EST)
 from apollo2.minshall.org (localhost [IPv6:::1]) by 
minshall-entroware-apollo.cliq.com (Postfix) with ESMTP id E305D6089A for 
<address@hidden>; Wed, 20 Nov 2019 10:41:34 +0530 (IST)

Andy

[1] https://cr.yp.to/mess822.html
-- 
TAI64 timestamp: 400000005dd69ee2





reply via email to

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