[Raw Msg Headers][Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug in new content-policy protocol handling?



Hello,

in the new content policy filter protocol, the filter is supposed
to be run in a loop waiting for job-spec's. However, after checking
the log file of my filter, I found that the filter is always only
passed exactly one message to process; i.e., the loop is always
executed exactly just once.

This happens even if I modify my filter to use select and sysread.

Log for one message is included below; there is no timeout occuring
or anything obvious (e.g., two #hungry's in a row, changes in pid,
etc.) that would cause this. Perhaps there is a bug in the
contentfilter.c code (unless there's a bug in my filter :-)
which would be quite bad...)

1055311550-16183#	started: smtp-contentfilter/4.30 (2003/06/11) Spamdex/2.16 (2002/12/29) SMTP_ContentFilter_Core/4.56 (2003/04/11) SMTP_ContentFilter_History/1.21 (2003/04/08) ZMailer_Message_File/4.32 (2003/05/29) loadavg/1.01 (2001/03/09)
1055311550-16183w	#hungry
1055311550-16183r	/software/zmailer-2.99.56/spool/public/ada:16181

1055311550-16183#	jobspec: /software/zmailer-2.99.56/spool/public/ada:16181
1055311552-16183#	ino=133514, origin=213.136.52.31, from=<mysql-return-142380-news-misc=ada.dhs.org@lists.mysql.com>, to=<news-misc@ada.dhs.org>
1055311552-16183#	code=0 (Ok), comment=Ok
1055311552-16183#	spamdex=-6 (-20/3)
1055311552-16183w	0 2.0.0 Ok (-20/3) (2 s elapsed: 1.79688 kB/s)
1055311552-16183w	#hungry
1055311552-16183#	no more input on standard input
1055311552-16183#	stopped normally (1 message processed in 2 s, 0 s idle)

^^^^^^^^^^ ^^^^ ^       ^^^^^^^^^
timestamp  pid  r/w/#   input/output/comment

Corresponding smtpserver log follows:

KGFsD8x0000#	connection from lists.mysql.com ipcnt 1 childs 1 ident: NO-IDENT-SERVICE[2]
KGFsD8x0000#	Looked up DNS A object: 31.52.136.213.. -> 31.52.136.213
KGFsD8x0000w	220 ada.dhs.org:n ZMailer-palvelin 2.99.56-pre4 #6 ESMTP+IDENT (katso http://ada.dhs.org/) - Wed, 11 Jun 2003 02:05:48 -0400
KGFsD8x0000#	remote from [213.136.52.31]:13030
KGFsD8x0000r	HELO lists.mysql.com
KGFsD8x0000w	250 ada.dhs.org Hello lists.mysql.com
KGFsD8x0001r	MAIL FROM:<mysql-return-142380-news-misc=ada.dhs.org@lists.mysql.com>
KGFsD8x0001w	250 2.1.0 Sender syntax Ok
KGFsD8x0001r	RCPT TO:<news-misc@ada.dhs.org>
KGFsD8x0001w	250 2.0.0 Ok (verified) Ok
KGFsD8x0001r	DATA
KGFsD8x0001w	354 Start mail input; end with <CRLF>.<CRLF>
KGFsD8x0001#	ContentPolicy program running with pid 16183; input='/software/zmailer-2.99.56/spool/public/ada:16181'

KGFsD8x0002#	policyprogram said: rc=7  '#hungry'
KGFsD8x0004#	policyprogram said: rc=46  '0 2.0.0 Ok (-20/3) (2 s elapsed: 1.79688 kB/s)'
KGFsD8x0004w	250 2.6.0 .0.0 Ok (-20/3) (2 s elapsed: 1.79688 kB/s); S133514AbTFKGFt
KGFsD8x0004#	S133514AbTFKGFt: 3680 bytes
KGFsD8x0004r	QUIT
KGFsD8x0004w	221 2.0.0 ada.dhs.org Out

Best regards,
-- 
Ambrose LI Cheuk-Wing  <a.c.li@ieee.org>

http://ada.dhs.org/~acli/
-
To unsubscribe from this list: send the line "unsubscribe zmailer" in
the body of a message to majordomo@nic.funet.fi