Procmail Email Filtering
Procmail is a server side filtering option available on some IMAP based email server setups. It usually requires FTP, or SSH access to the mail server, and is designed for people with Linux/Unix experience.
The raw procmail rule below is in red :
:0:
* Sender: listen-bounces@audiolabourersfederation.com
$MAILDIR/.LISTEN/
The script will automatically create a LISTEN folder in your mail directory, and move any incoming emails to it.
Please note that for IMAP accounts in Thunderbird, once you have received an email to the list using the above rule, the folder will be generated, but you will need to right click on the Inbox, and select [Subscribe], then tick the LISTEN folder, before the folder and emails will show up.
For those people not familiar with Procmail, I suggest you do a Google search to get familiar with it as you can cause a lot of issues, and potentially lose any incoming emails if the rule is incorrect.
For better explanation of how to use the rule below is an example of a suggested .procmailrc file.
————————————-
# Only need verbose on if your not sure about the rules, can be turned off once everything is confirmed working.
VERBOSE=on
MAILDIR=$HOME/Maildir/ #This is server specific, change if required
LOGFILE=procmail.log#The actual rule
:0:
* ^Sender: listen-bounces@audiolabourersfederation.com$
$MAILDIR/.LISTEN/#Anything listed as spam, should go into the spam folder.
:0
* ^X-(BrightMail|IronPort)-SPAM: SPAM
$MAILDIR/.Spam/#Anything that doesn’t match a rule goes into your inbox
:0
$MAILDIR
————————————-
Disclaimer : Any damage caused by the use of the above information is regrettable, but the author takes no responsibility. Please check that you understand the above rules before applying them.