The sift IMAP client is a simple scriptable tool
which allows you to carry out a number of
operations against the messages maintained on a
remote IMAP server. Using simple rules chained
together, you may select messages of interest and
apply various operations to them.