OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
[PATCH] Add recipient count into policy checking

From: Guo Black (guo.blackgmail.com)
Date: Thu Jan 19 2006 - 14:24:00 CST


Hi, Witese,

For some reasons we need the rcpt count number for an policy
deligation service that does accounting for outgoing e-mails. Does
the following delta look appropriate?

--- smtpd_check.c.orig Thu Dec 22 23:46:36 2005
+++ smtpd_check.c Fri Jan 20 04:16:03 2006
-3273,6 +3273,8
                           state->sender ? state->sender : "",
                           ATTR_TYPE_STR, MAIL_ATTR_RECIP,
                           state->recipient ? state->recipient : "",
+ ATTR_TYPE_LONG, MAIL_ATTR_RCPT_COUNT,
+ state->rcpt_count,
                           ATTR_TYPE_STR, MAIL_ATTR_QUEUEID,
                           state->queue_id ? state->queue_id : "",
                           ATTR_TYPE_STR, MAIL_ATTR_INSTANCE,

Thanks in advance!

Best Regards,