# directory where your mailboxes are stored
md = userhome+"/Mail/"


# junk everything from well-known spammer, and everything that has $$$ in Subject:
if ADDR_FROM[1] == "spammer@yahoo.com" or contains(SUBJECT, "$$$"):
    Junk()
    stop()

# if body of the mail contains words "business opportunity", send it to 
# a special mailbox - it is probably spam, but what if it is not - we might
# want to look at it later
# Oh.. and do it case-insensitive
if contains(BODY, "business opportunity", case=0):
    Set(MailBox(md+"possible-spam"))
    stop()


# mail from former girlfriend - forward it to her current boyfriend,
# but keep a copy just in case :-)
# ADDR_FROM[0] is name, ADDR_FROM[1] e-mail address
if ADDR_FROM[0] == "Pamela Anderson":
    Set(    Forward("tommy.lee@hollywood.com"),
            MailBox(md+"pamela")
        )
    stop()


