25 lines
773 B
C
25 lines
773 B
C
/* mail_processor.h - Header parsing, header rewriting, and UC 4.2-4.5 routing */
|
|
#ifndef __MAIL_PROCESSOR_H__
|
|
#define __MAIL_PROCESSOR_H__
|
|
|
|
#include <ilib/config.h>
|
|
#include <ilib/subscribers.h>
|
|
#include <ilib/pending.h>
|
|
#include <ilib/mail_engine.h>
|
|
|
|
typedef struct mail_processor {
|
|
subrelay_config_t *cfg;
|
|
subscriber_pool_t *subscribers;
|
|
pending_pool_t *pending;
|
|
} mail_processor_t;
|
|
|
|
int mail_processor_init(mail_processor_t *mp,
|
|
subrelay_config_t *cfg,
|
|
subscriber_pool_t *subscribers,
|
|
pending_pool_t *pending);
|
|
|
|
/* Processes a single fetched message according to UC 4.2 - 4.5 */
|
|
int mail_processor_execute(mail_processor_t *mp, mail_message_t *msg);
|
|
|
|
#endif /* __MAIL_PROCESSOR_H__ */
|