Article View: demon.ip.developers
Article #1354Re: Header editing (Was Rewriting history)
From: Tim Illingworth
Date: Mon, 20 Nov 1995 00:00
Date: Mon, 20 Nov 1995 00:00
53 lines
2853 bytes
2853 bytes
In article <816889401snz@tsys.demon.co.uk>
tomw@tsys.demon.co.uk "Tom Wheeley" writes:
>Almost completely unrelated, but this reminds me of a project I've been
>meaning to get on with for quite a while recently: a program to deal with
>mail headers.
>
>I first thought of this as trying to find a way to (f)ollow-up articles in
>mailing lists, as periodically I _do_ get a bounce from the news server :(
What you (probably) want is for mail2snz to add a Follow-up To:
header line, to match the Reply-To: line (if present) or poster (if
there's no Reply-To: line.
>I thought at this point that a nice way to do this would be a batch file
>utility, so I would be able to do other thigns as well (whatever they might
>be).
>
>I've even thought of a syntax:
>
>HED <command> [switches] <file> <Header-Name> [data... | Env var name]
I'd _strongly_ suggest a command file - with that syntax you're
going to be running it from a batch file most of the time. HED
<filename> is probably easier to handle.
>Yes, I did steal the command line methodology from ARJ. I like it, ok :)
Yerss. But I don't have to like it....
>Anyway, *why* am I posting this?! Well, I would like to know if anyone else
>has done something simialr (not counting advanced things like awk etc.)
>or if anyone had any comments, fatal flaws to point out etc.
It's relatively easy to do, if you know what you're doing. SmofList
forward.exe does similar things in its header sanitisation routine.
>oh, 1 question, *How is mail in the mail file separated. AFAICR there isn't
>soemthing nice like the rnews.*
<blank line>From<space> is what I use, CPPNews uses ^A^A^A^A, others
use <newline>From<space> etc...
All the Best,
Tim
--
-----------------------------------------------------------------------------
Tim Illingworth tim@smof.demon.co.uk Go not to Usenet for advice, for
Chessington, timill@cix.compulink.co.uk they will say both 'No' and 'Yes'
Surrey, UK 100144.3343@compuserve.com and 'Try Another Newsgroup'
-----------------------------------------------------------------------------
Technical Details
Message-ID:
<816897439snz@smof.demon.co.uk>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<816201151snz@siberia.demon.co.uk> <816211836.5182@thokk.demon.co.uk> <816376122snz@alquds.demon.co.uk> <816389914snz@wash.demon.co.uk> <816696796snz@alquds.demon.co.uk> <816739142snz@wash.demon.co.uk> <816889401snz@tsys.demon.co.uk>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10bb05,e930b967a391bea0,start X-Google-Attributes: gid10bb05,public From: Tim Illingworth <tim@smof.demon.co.uk> Subject: Re: Header editing (Was Rewriting history) Date: 1995/11/20 Message-ID: <816897439snz@smof.demon.co.uk> X-Deja-AN: 119770373 x-nntp-posting-host: smof.demon.co.uk references: <816201151snz@siberia.demon.co.uk> <816211836.5182@thokk.demon.co.uk> <816376122snz@alquds.demon.co.uk> <816389914snz@wash.demon.co.uk> <816696796snz@alquds.demon.co.uk> <816739142snz@wash.demon.co.uk> <816889401snz@tsys.demon.co.uk> organization: Smof Software reply-to: tim@smof.demon.co.uk newsgroups: demon.ip.developers