view src/sm-archive.h @ 10:f9e8bbf33a2a

more fixes for solaris
author carl
date Tue, 30 Jan 2007 16:28:16 -0800
parents ed73e6361570
children 75e1a9bcbc2e
line wrap: on
line source

#ifndef smarchive_include
#define smarchive_include

#include "context.h"

extern int debug_syslog;

////////////////////////////////////////////////
// mail filter private data, held for us by sendmail
//
struct mlfiPriv
{
	// connection specific data
	CONFIG	*pc;			// global filtering configuration
	// message specific data
	char		*mailaddr;	// envelope from value
	char		*queueid;	// sendmail queue id
	string_set	targets;	// targets to add at eom, strings are owned by the config
	mlfiPriv();
	~mlfiPriv();
	void reset(bool final = false); // for a new message
};

void my_syslog(mlfiPriv *priv, char *text);
void my_syslog(char *text);

#endif