Laurence Michaels <lmichael(_at_)techmail(_dot_)gdc(_dot_)com> writes:
Err... if you happen to have two accounts, both running procmail, and
both forwarding, you need a little bit more in that recipe :-)
On one account (on machine 'your.main.mail.address'):
:0 c
* !^X-Loop: yourname(_at_)your(_dot_)main(_dot_)mail(_dot_)address
| formail -A "X-Loop: yourname(_at_)your(_dot_)main(_dot_)mail(_dot_)address"
| \
$SENDMAIL -oi yourname(_at_)the(_dot_)other(_dot_)account
Unnecessary if you already have duplicate-filtering (which is a good idea in
the first place anyway):
:0 Wh :$MSGID.lock
| formail -D 8192 $MSGID
Of course, you might also want to add a message-id header
to avoid the loop with evil mails that don't have a message-id:
:0
* ! ^Message-ID:
{
DATE=`date | tr ' ' '-'`
:0 fhw
| formail -a "Message-ID:
<$DATE-$$(_at_)mymachine(_dot_)mydomain>"
}
Actually messages with no Message-ID are exceedingly rare.
Stefan