/* * this is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License as published * by the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * this is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see ."; * * (c) Alexander Vdolainen 2007, 2026 * subrelay: a minimalistic maillist server based on external IMAPs/SMTPs * * mail_processor.h: RFC 822/RFC 5322 header parsing/rewriting and routing * */ #ifndef __MAIL_PROCESSOR_H__ #define __MAIL_PROCESSOR_H__ #include #include #include #include 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 defined use cases */ int mail_processor_execute(mail_processor_t *mp, mail_message_t *msg); #endif /* __MAIL_PROCESSOR_H__ */