procmailrc2


$ cat .procmailrc

:0 HB
* Alanine|Cysteine|Glycine|Histidine
* ^From.*[email protected]
{
        :0c:
        | (formail -r -A"X-Loop: [email protected]" -I"From: [email protected]"; cat help.txt ) | $SENDMAIL -t
        :0
        | (formail -r -A"X-Loop: [email protected]" -I"From: [email protected]" -I"To: [email protected]" ; cat help.txt ) | $SENDMAIL -t
}


$ cat help.txt 
Hi,

do you need systems help with said meeting/presentation? if so, do let us know what you need..

best regards,
liang zhu

procmailrc


INCLUDERC=/mnt/vacation/liangzhu/rc.vacation

:0 Whc: msgid.lock
| formail -D 8192 msgid.cache

#:0
#* ^(To|CC):[email protected]
#Maildir/enquiry

# copy gmail.
:0c:
* ? formail -x"From" -x"From:" -x"Sender:" \
    -x"Reply-To:" -x"Return-Path:" -x"To:" \
    | egrep -is -f ~/white.lst
[email protected]

:0
* ? formail -x"From" -x"From:" -x"Sender:" \
    -x"Reply-To:" -x"Return-Path:" -x"To:" \
    | egrep -is -f ~/white.lst
Maildir/

:0
* ? formail -x"From" -x"From:" -x"Sender:" \
    -x"Reply-To:" -x"Return-Path:" -x"To:" \
    | egrep -is -f ~/black.lst
Maildir/.Junk/

:0c: B
* liangzhu
[email protected]

:0 B
* liangzhu
Maildir/

:0
* ^Subject: Password expiring in
Maildir/.Password/

#:0 B
#* Please change your BII password within
#Maildir/.Password/

#:0 B
#* If you see negative days,please change your password NOW
#Maildir/.Password/

#:0
#* !^From.*bii.a-star.edu.sg
#* ^From.*a-star.edu.sg
#Maildir/.astar/

# copy gmail.
:0c:
[email protected]

# Spam tagged mail goes into spam folder
:0
* ^X-Spam-Flag: YES*
Maildir/.Spam/


# All other mail goes into the main inbox.
:0
Maildir/