I am archiving a onelist mail list. I already use this to remove the name of
the list from the subject:
:0
* ^TO(_dot_)*cigare(_at_)onelist\(_dot_)com
{
clean_subject = `formail -xSubject: | sed 's/ \[cigare\]//'`
:0 fh
| formail -I "Subject:$clean_subject"
:0 c:mhonarc.lock
| /home/felix/script/mhonarc -quiet -rcfile
/home/felix/public_html/cigare/.rc -outdir /home/felix/public_html/cigare -add
:0:
$ARCHIVEDIR/cigare-archive
}
I also would like to remove the signature which is added by onelist
(something like:
------------------------------------------------------------------------
To unsubscribe from this mailing list, or to change your subscription
to digest, go to the ONElist web site, at http://www.onelist.com and
select the User Center link from the menu bar on the left.
)
Any hints on how can this be done.... should I use sed, something like
sed -e /^-----------------------$/,$d
or $-4,$d
Thanks in advance
--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
"Renault, 97: le ch\xF4mage pour Vilvorde, 98: 5 milliards pour les
actionnaires."
Professional: http://www.laas.fr/~felix
mailto:felix(_at_)laas(_dot_)fr
Personal: http://worldserver.oleane.com/felix
mailto:felix(_at_)dial(_dot_)oleane(_dot_)com