The wait command dont seem to work for me. I have the following series
of rules and commands:
:0c
| formail -X From:>> $MAIL_TAIL
:0c
| formail -X Subject:>> $MAIL_TAIL
:0c
| formail -I ""|egrep -v '>|^Content-|^--' |sed '/^$/d'|perl -ne 'if (not
/(From: Eric Smith |---.*original message|nachrigt.*---)/i../eof/){prin
t "... $_"} '|head -24 >> $MAIL_TAIL
:0c
| echo -e "\n................ mail divider .................\n">> $MAIL_TAIL
This is ugly and I am sure I will be told how to write it better.
What does it do -> this:
<quote>
tail: /home/eric/var_spool_mail.tail: file truncated
From: Phil Pennock <phil(_dot_)pennock(_at_)globnix(_dot_)org>
................ mail divider .................
Subject: Re: sending escape sequences to print in color
... On 2003-03-24 at 22:00 +0100, Eric Smith wrote:
... Portably: with difficulty.
... If you restrict yourself to most modern terminals or terminal emulators,
... then you're after the ANSI escapes, which are:
... And here the number controls the colour, fg, bg, etc. Use two digits,
<...>
</quote>
Problem: the "mail divider" line gets executed either above the formail -X
Subject:
or above the body. I tries the `f' flag and the `W' but do not get a result.
How do I implement this more elegantly in procmail and get the "mail divider"
to actually print between the mails.
(PS: Will probably reimplement this to write(1) directly to a terminal rather
than
to a file - which I tail)
thanx
--
Eric Smith
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail