From: Hans Zoebelein <zocki@goldfish.cube.net>
To: blinux-list@redhat.com
Subject: Re: to much list info
Date: Tue, 10 Dec 1996 21:43:22 +0100 (MET) [thread overview]
Message-ID: <Pine.LNX.3.94.961210201034.9630A-100000@goldfish.cube.net> (raw)
In-Reply-To: <199612091749.JAA15130@eos.arc.nasa.gov>
Removing the disclaimer at the end of each mail
is really easy under LINUX/UNIX using the command "grep"
The following script file will do the work for you.
Save this mail as a file called "stripme".
Edit the file and remove all stuff before and after
"---snip-snip---". (Remove line "---snip-snip---" also).
Copy "stripme" into the directory where your mail
file sits ( normally /home/YOUR_NICKNAME/mail )
Change the variable MAILFILE to the real name of your
mail file (normally "saved-messages"). Make "stripme" executable:
"chmod uog+x stripme"
Fire up "stripme" and the disclaimer is gone (but hopefully not
your mail file :) A backup of your original mail file will saved
in saved-messages.<process_id_no>.
----Snip-Snip-Snip----
#!/bin/sh
#
#stripme
#
# remove some lines from $MAILFILE
# put this file into your directory, where your
# mail file sits.
# adapt MAILFILE to your real mailbox file name
MAILFILE=saved-messages
MAILFILE_NEW=saved-messages.new
MAILFILE_BAK=saved-messages.$$
# all lines containing these strings will vanish
REMOVE_ME1="Blinux software archive at"
REMOVE_ME2="Blinux web page at"
REMOVE_ME3="To unsubscribe send mail to"
REMOVE_ME4="with subject line:"
# if your box creashes during work...
cp $MAILFILE $MAILFILE_BAK
cat $MAILFILE \
| grep -v "$REMOVE_ME1" \
| grep -v "$REMOVE_ME2" \
| grep -v "$REMOVE_ME3" \
| grep -v "$REMOVE_ME4" > $MAILFILE_NEW
mv $MAILFILE_NEW $MAILFILE
----Snip-Snip-Snip----
Hans
On Mon, 9 Dec 1996, Jim Stevenson wrote:
> Hi.
>
> I save many of the list messages to get a base of helpful data for when I
> transission to lynnex.
>
> Could we illiminate the subscription and unsubscribe from the end of each message?
>
> Those who are on the list should already know this, so repeating it just
> wastes disk space.
>
> Thanks much
>
prev parent reply other threads:[~ UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
Jim Stevenson
` Luke Davis
` John Schucker
` Hans Zoebelein [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.LNX.3.94.961210201034.9630A-100000@goldfish.cube.net \
--to=zocki@goldfish.cube.net \
--cc=blinux-list@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).