view src/sm-archive.h @ 18:e1a028daceb9

Added tag stable-1-6 for changeset 8ebecad6530f
author Carl Byington <carl@five-ten-sg.com>
date Fri, 21 Mar 2008 16:02:40 -0700
parents 75e1a9bcbc2e
children b24369330483
line wrap: on
line source

/*

Copyright (c) 2007 Carl Byington - 510 Software Group, released under
the GPL version 3 or any later version at your choice available at
http://www.gnu.org/licenses/gpl-3.0.txt

*/
#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
	string_set	removal;	// targets to remove at eom, strings are owned here
	mlfiPriv();
	~mlfiPriv();
	void reset(bool final = false); // for a new message
};

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

#endif