OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: header_if_reject

From: Piotr KUCHARSKI (chopinsgh.waw.pl)
Date: Mon Feb 07 2005 - 09:43:06 CST


On Mon, Feb 07, 2005 at 09:11:45AM -0500, Victor Duchovni wrote:
> - It is in principle possible for "error_text" to get moderately long,
> you should ensure that the resulting header is less than "var_line_limit"
> in length, since later code in smtpd does not split long input into
> multiple records.

Sure, easy:

vstring_sprintf(hbuf, "X-Reject-Warning: %.*s", var_line_limit - 20,
          printable(STR(error_text), '?'));

> - You should perhaps use ARGV_END instead of (char *)0, but existing code
> is already not consistent in this regard.

In fact I copied it from some other place in smtpd_check.c. But
no problem with using it, sure.

p.

--
Beware of he who would deny you access to information, for in his
heart he dreams himself your master. -- Commissioner Pravin Lal
http://nerdquiz.sgh.waw.pl/ -- polska wersja quizu dla nerdów ;)