[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: |
Steffen Nurpmeso |
Subject: |
Re: format and output all received: lines in an e-mail message |
Date: |
Thu, 21 Nov 2019 23:14:29 +0100 |
User-agent: |
s-nail v14.9.15-219-g336589c5 |
Andy Bradford wrote in <address@hidden>:
|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 \
...
Well, yes, it is a bit restricted, but you could also use S-nail
v14.9.11 or later:
$ printf 'dig c 25 -;dig 25 h s received;digmsg r 25' |\
s-nail -#Rf +download
212 Received
from lists.gnu.org (lists.gnu.org [209.51.188.17]) by sdaoden.eu (Postfix)
with ESMTPS id 977431604A for <address@hidden>; Thu, 21 Nov 2019 15:28:01 +0100
(CET)
from localhost ([::1]:41250 helo=lists1p.gnu.org) by lists.gnu.org with esmtp
(Exim 4.90_1) (envelope-from <nmh-workers-bounces+steffen=address@hidden>) id
1iXnR9-000318-IA for address@hidden; Thu, 21 Nov 2019 09:27:59 -0500
from eggs.gnu.org ([2001:470:142:3::10]:39911) by lists.gnu.org with esmtp
(Exim 4.90_1) (envelope-from <address@hidden>) id 1iXnQr-0002zm-Am for
address@hidden; Thu, 21 Nov 2019 09:27:42 -0500
from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from
<address@hidden>) id 1iXnQq-0007yp-1j for address@hidden; Thu, 21 Nov 2019
09:27:41 -0500
from pellegrino.bradfordfamily.org ([208.53.44.231]:50897) by eggs.gnu.org
with smtp (Exim 4.71) (envelope-from <address@hidden>) id 1iXnQp-0007uL-NM for
address@hidden; Thu, 21 Nov 2019 09:27:39 -0500
(qmail 73392 invoked from network); 21 Nov 2019 14:27:26 -0000
from localhost (HELO arnor.bradfordfamily.org) (127.0.0.1) by localhost with
SMTP; 21 Nov 2019 14:27:26 -0000
(qmail 71469 invoked from network); 21 Nov 2019 14:27:10 -0000
from localhost (HELO edoras.bradfordfamily.org) (127.0.0.1) by localhost with
SMTP; 21 Nov 2019 14:27:10 -0000
(qmail 50445 invoked from network); 21 Nov 2019 14:27:10 -0000
from angmar.bradfordfamily.org (50.77.44.21) by edoras.bradfordfamily.org
with SMTP; 21 Nov 2019 14:27:10 -0000
(qmail 27684 invoked by uid 1000); 21 Nov 2019 14:27:10 -0000
Where dig is actually digmsg, c is create, h is header, s is show,
and r is remove. String matching etc. via the csop and vexpr
commands.
I have heared someone revived qmail and wants to include some
patches for builtin TLS etc. That sounded very much interesting,
especially if its mailing-list manager would be maintained again!
|Andy
|
|[1] https://cr.yp.to/mess822.html
...
--steffen
|
|Der Kragenbaer, The moon bear,
|der holt sich munter he cheerfully and one by one
|einen nach dem anderen runter wa.ks himself off
|(By Robert Gernhardt)
- Re: format and output all received: lines in an e-mail message, (continued)
- Re: format and output all received: lines in an e-mail message, Andy Bradford, 2019/11/21
- Re: format and output all received: lines in an e-mail message,
Steffen Nurpmeso <=
- Re: format and output all received: lines in an e-mail message, Ken Hornstein, 2019/11/22
- Re: format and output all received: lines in an e-mail message, Ralph Corderoy, 2019/11/23
- Re: format and output all received: lines in an e-mail message, Ken Hornstein, 2019/11/23
- Re: format and output all received: lines in an e-mail message, Andy Bradford, 2019/11/23