README (66494) | README (71345) |
---|---|
1This directory contains the source files for libmilter. 2 3The sendmail Mail Filter API (Milter) is designed to allow third-party 4programs access to mail messages as they are being processed in order to 5filter meta-information and content. 6 7This README file describes the steps needed to compile and run a filter, 8through reference to a sample filter which is attached at the end of this --- 164 unchanged lines hidden (view full) --- 173the logging level of sendmail can be raised with the LogLevel option. 174See the sendmail(8) manual page for more information. 175 176 177+--------------------------+ 178| SOURCE FOR SAMPLE FILTER | 179+--------------------------+ 180 | 1This directory contains the source files for libmilter. 2 3The sendmail Mail Filter API (Milter) is designed to allow third-party 4programs access to mail messages as they are being processed in order to 5filter meta-information and content. 6 7This README file describes the steps needed to compile and run a filter, 8through reference to a sample filter which is attached at the end of this --- 164 unchanged lines hidden (view full) --- 173the logging level of sendmail can be raised with the LogLevel option. 174See the sendmail(8) manual page for more information. 175 176 177+--------------------------+ 178| SOURCE FOR SAMPLE FILTER | 179+--------------------------+ 180 |
181Note that the filter below may not be thread safe on some operating 182systems. You should check your system man pages for the functions used 183below to verify the functions are thread safe. 184 |
|
181/* A trivial filter that logs all email to a file. */ 182 183#include <sys/types.h> 184#include <stdio.h> 185#include <stdlib.h> 186#include <string.h> 187#include <sysexits.h> 188#include <unistd.h> --- 218 unchanged lines hidden (view full) --- 407 fprintf(stderr, "smfi_register failed\n"); 408 exit(EX_UNAVAILABLE); 409 } 410 return smfi_main(); 411} 412 413/* eof */ 414 | 185/* A trivial filter that logs all email to a file. */ 186 187#include <sys/types.h> 188#include <stdio.h> 189#include <stdlib.h> 190#include <string.h> 191#include <sysexits.h> 192#include <unistd.h> --- 218 unchanged lines hidden (view full) --- 411 fprintf(stderr, "smfi_register failed\n"); 412 exit(EX_UNAVAILABLE); 413 } 414 return smfi_main(); 415} 416 417/* eof */ 418 |
415$Revision: 8.9.2.1.2.12 $, Last updated $Date: 2000/09/19 19:40:13 $ | 419$Revision: 8.9.2.1.2.13 $, Last updated $Date: 2000/12/29 18:55:23 $ |