WikiPedia:Daemon_%28computer_software%29

Mercury/32 has a very robust daemon interface. A daemon is a program that interfaces directly with Mercury/32. Unlike MercuryPolicies?, daemons essentially become part of Mercury/32. Daemons have full control over all facets of a message. Daemons can modify the message headers, message body, recipients, etc. Daemons can do anything with a message.

A good example of a daemon is Eduardo Subelman's POPFileD daemon, which many Mercury/32 users use for ControllingSpam. POPFileD takes all messages that pass through Mercury/32 and submits them to POPFile for classification. After POPFile classifies the message into a bucket, POPFileD adds the appopriate message headers, subject line modifiers, and a few more things, and places the message back into the message flow. The POPFileD entry in the daemon.ini file contains settings for controlling which messages get processed. POPFileD also lets you create a RegEx that is used to exclude messages from processing, such as locally sent, or resent, messages.

Daemons are programs in Windows DLL format. If you want to create a daemon, you'll need to know how to program in C or C++.

Mercury/32 includes a text file, \mercury\resource\daemon.txt, that defines the interface between Mercury/32 and and daemons. Also included is a header file, \mercury\resource\daemon.h.

A few programmers have been kind enough to release the source code for their daemons. Adrian Caspersz provides the code for his Global Send As daemon here: http://www.it-scrapyard.co.uk/. Eduardo Subelman used to provide the source code for POPFileD, but I can't find it on his new web site: http://users.adelphia.net/homedale/popfiled/. Perhaps he just forgot the link?

To install a daemon, you will need to copy the daemon files to the \mercury directory and add the requried entry to the daemon.ini file. Each daemon will have its specific requirements, so you'll have to follow the installation instructions that come with the dameon.


2 pages link to MercuryDaemons:
 . Page Name .   . Last Modified . 
 Mercury32   June 28, 2006 8:39 am 
 MessageProcessingFlowChart   May 12, 2006 10:11 am