Article View: news.software.readers
Article #8128Trn elm suggestion. mbox.saver hack.
From: Robert Nicholson
Date: Fri, 18 Mar 1994 22:32
Date: Fri, 18 Mar 1994 22:32
38 lines
1937 bytes
1937 bytes
I archive my news in unix mail folders from trn using the macro.
:S) %(%m=[ap]?s ~/Mail/%C
Now that I've changed elm so that it supports 'N' status I thought I'd
share this with you.
If I save a message to a folder, specifically a news folder then I
don't want to regard that message as New.
So I've changed things a bit.
In mbox.saver...
/usr/ucb/tail +$5c $1 | /bin/sed "s/^From />From /"
I changed this line to
/usr/ucb/tail +$5c $1 | /bin/sed "s/^From />From /" | /usr/local/bin/formail -a "Status: RO"
formail is a utility that comes with the excellent procmail mail
filtering package. One of the many things it allows me to do is add a
custom header to a message.
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.
I assume it's something like
sed '/^\n/aStatus: RO/' or something like that I'm no good with
double barrel sed lines.
--
"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:
<2mda5g$v2@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!pipex!demon!steffi.demon.co.uk!steffi.demon.co.uk!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <2mda5g$v2@steffi.demon.co.uk> Subject: Trn elm suggestion. mbox.saver hack. Date: Fri, 18 Mar 1994 22:32:16 +0000 From: robert@steffi.demon.co.uk (Robert Nicholson) 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!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: 37 NNTP-Posting-Host: steffi.demon.co.uk