preparation for mail filtering