Copied the messagelog app from RapidSMS and modified to act during the
filter phase.