Hello Ruud H.G. van Tol,
Am 2010-06-11 23:03:02, hacktest Du folgendes herunter:
$ echo "From: test1" | split.rc
$ echo "From: test1:" | split.rc
after=''
before='From: test1'
$ echo "From: test1: test2: test3" | split.rc
after=' test3'
before='From: test1: test2'
split.rc:
#!/usr/local/bin/procmail
NL="
"
:0
* ^From:.*:\/[^:]*$
* MATCH ?? ^\/.*
{ LOG=after=\'$MATCH\'$NL }
:0
* ^\/From:.*:
* MATCH ?? ^\/.*[^:]
{ LOG=before=\'$MATCH\'$NL }
Thanks for the recip, but it does not work for me du to the utf8 encoded
From/Subject lines... I have to sed before the UTF8 stuff and then pass
it to the script...
It would be realy good, if procmail start to support at least iso-8859-1
and utf8 qouted-printable headers...
Thanks, Greetings and nice Day/Evening
Michelle Konzack
--
Development and Production of Low-Energie Electronics,
Computer Hardware and Solar/Wind-Energie Systems
electronica(_at_)tdnet France EURL electronica(_at_)tdnet UG (lim.
liab.)
Owner Michelle Konzack Owner Michelle Konzack
Apt. 917 (homeoffice)
50, rue de Soultz Kinzigstraße 17
67100 Strasbourg/France 77694 Kehl/Germany
Tel: +33-6-61925193 mobil Tel: +49-177-9351947 mobil
Tel: +33-9-52705884 fix
<http://www.electronica.tamay-dogan.net/> <http://www.can4linux.org/>
<http://www.tamay-dogan.net/> <http://www.flexray4linux.org/>
Jabber electronica(_at_)jabber(_dot_)ccc(_dot_)de
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)de
http://mailman.rwth-aachen.de/mailman/listinfo/procmail