On Tue, Dec 13, 2005 at 01:20:22PM -0000, Ugo Bellavance wrote:
> Milter add: header: X-Greylist: Delayed for 00:01:12 by milte
> r-greylist-2.0.2
> X-Greylist: Delayed for 00:11:44 by milter-greylist-2.0.2
>
> Please let me know what you think. It is far from being production grade.
But you are making progress fast.
In order to fix the header problem, we need to rework the code a bit
deeper. You can roll back the two changes where you traded a SMFIS_TEMPFAIL
for a SMFIS_CONTINUE (but retain the changes you did to add the config
option), then:
In acl.h, add a define for EXF_LEARN after other EXF_* stuff
In miter-greylist.c:mlfi_envrcpt(), after the conf.c_debug test:
if (conf.c_learnmode) {
priv->priv_elapsed = 0;
priv->priv_whitelist = EXF_LEARN;
return SMFIS_CONTINUE;
}
In miter-greylist.c:mlfi_eom(), you have a list of if statement
for setting whystr depending on priv->priv_whitelist, add one for
learn mode:
if (priv->priv_whitelist & EXF_LEARN) {
ADD_REASON(whystr, "Learning mode enabled");
priv->priv_whitelist &= ~EXF_LEARN;
}
And you are done.
--
Emmanuel Dreyfus
manu@...Message
Re: [milter-greylist] Code for learning mode uploaded
2005-12-13 by Emmanuel Dreyfus
Attachments
- No local attachments were found for this message.