1
require ["variables", "include", "relational", "fileinto"];
5
# The included script may contain repetitive code that is
6
# effectively a subroutine that can be factored out.
8
include "rfc-ex2-spam_filter_script";
10
set "test" "Make money";
11
include "rfc-ex2-spam_filter_script";
13
# Message will be filed according to the test that matched last.
14
if string :count "eq" "${test_mailbox}" "1"
16
fileinto "INBOX${test_mailbox}";
20
# If nothing matched, the message is implicitly kept.