As is typical with installing anything in cygwin, CRM114 took some tweaking to get it to install properly. The CRM114 Discriminator is a “Controllable Regex Mutilator” according to their website. In engilish it is an complex and interesting tool to “examine incoming e-mail, system log streams, data files or other data streams, and to sort, filter, or alter the incoming files or data streams according to the user’s wildest desires.” Mostly it is used to sort spam.
Anyway, here is what I needed to do to install crm114 under cygwin. I used
the 20040231-BlameYokohama version of CRM114. First, get the libiconv,
gettext
and procmail
from cygwin. Then get the Mew
from www.Mew.org (I used version 3.3.) Install
mew-3.3 with cd bin && ./configure && make && make install
. This will
give you mewdecode
and mewencode
. From the CRM114 package cd into tre
directory and install with ./configure && make && make install
. Now, back in
the main CRM114 dir, edit the Makefile to add the following lines somewhere
after the initial definitions.
CFLAGS += -I/usr/local/include
LDFLAGS += -L/usr/local/lib
LIBS += -lintl -liconv
The spam filters that we use at work, process all the messages in a particular folder to train the filter. Rather than drag and drop messages, I use the following code to move the selected or active message into the target folder. For each of the public subs, I have a toolbar button which runs the code.
The following code worked for older versions of Outlook (2000 I believe), but does not work for newer versions. There used to be a junk button on the toolbar. The code effectively activated that button. I’m not sure how to do it in newer version of Outlook. I have actually given up on Outlook’s spam filtering and use SpamAssassian now. You might check out Wininspector to track down the right object.
If anyone figures out a solution, please email me know. I have had several people ask about this.
This code combines the frequently used steps of adding the senders of all selected e-mails to the Outlook “Junnk Sender’s List” and then moving the messages to the junk mail folder. I then create a toolbar button associated with this “macro.”