🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #8139

Re: Trn elm suggestion. mbox.saver hack.

#8139
From: Robert Nicholson
Date: Sat, 19 Mar 1994 10:11
48 lines
2603 bytes
dattier@MCS.COM (David W. Tamkin) wrote in comp.mail.elm,news.software.readers
>robert@steffi.demon.co.uk (Robert Nicholson) wrote in
><2mda5g$v2@steffi.demon.co.uk>:
>
>| I changed this line to
>| 
>|  /usr/ucb/tail +$5c $1 | /bin/sed "s/^From />From /" | /usr/local/bin/formail -a "Status: RO"
>
>Do you really want to lose the "From " from the first line?  formail can
>re-create a From_ header but it will preserve the original one if given one.

Well the first From_ doesn't actually exist yet.. since trn adds it
later. So that's not a problem.

>
>/bin/sed '/^$/,$ s/^From />&/' | /usr/local/bin/formail -I "Status: RO"
>
>[I should think you'd want to force RO Status even if a Status: header
> already exists, hence -I instead of -a.]

When would the status header already exist though.. It's an Elm
concept. I'll adopt -I just in case though.

>
>| If you have a sed rule to do this I'd like to hear it, just for the sake of
>| it.  I'm ok with substitutions but the man page doesn't realy help
>| when you want to add text to an input stream in a specific location.
>
>Getting the job done right with sed is complicated; I've been burned too many
>times by posting answers to sed questions and then getting flamed by people
>who copy them wrong and blame me for posting lies.
>
>sed can do it, but it seems to me that the only reason you're calling sed
>is to defuse body lines beginning with "From ".  formail should do that if
>you don't use its -b flag to suppress the behavior.  Ergo 
>
>        /usr/local/bin/formail -I "Status: RO"
>
>ought to be enough.

Yes it is.

-- 
   "You know what's wrong with you?"              (Audrey Hepburn, Cary Grant)
       "No, what?"
   "Nothing"                                      (Charade, 1963)
                (ASCII for text only messages)
Technical Details
Message-ID: <2mej3r$2gu@steffi.demon.co.uk>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.mail.elm.mbox.zip!gmd.de!xlink.net!howland.reston.ans.net!EU.net!uknet!pipex!demon!steffi.demon.co.uk!steffi.demon.co.uk!not-for-mail
References: <2mda5g$v2@steffi.demon.co.uk> <2mdcq0$kd7@genesis.mcs.com>

Show Full Headers
Complete Article Headers
Message-ID: <2mej3r$2gu@steffi.demon.co.uk>
Subject: Re: Trn elm suggestion. mbox.saver hack.
Date: Sat, 19 Mar 1994 10:11:07 +0000
From: robert@steffi.demon.co.uk (Robert Nicholson)
References: <2mda5g$v2@steffi.demon.co.uk> <2mdcq0$kd7@genesis.mcs.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.mail.elm.mbox.zip!gmd.de!xlink.net!howland.reston.ans.net!EU.net!uknet!pipex!demon!steffi.demon.co.uk!steffi.demon.co.uk!not-for-mail
Newsgroups: comp.mail.elm,news.software.readers
Organization: me organised, that's a joke.
Lines: 42
NNTP-Posting-Host: steffi.demon.co.uk