Yahoo Groups archive

Milter-greylist

Index last updated: 2026-04-28 23:32 UTC

Message

Re: [milter-greylist] Rules per virtual domain name based?

2007-01-30 by Mart Pirita

Tere.
>
> He meant to change printf(...) to mg_log(LOG_ERR, ...).
>
>   
Hmm, sorry again, the first suggestion was:

Index: acl.c
===================================================================
RCS file: /cvsroot/milter-greylist/acl.c,v
retrieving revision 1.44
diff -U2 -r1.44 acl.c
--- acl.c       4 Jan 2007 23:01:46 -0000       1.44
+++ acl.c       8 Jan 2007 14:39:40 -0000
@@ -1133,8 +1133,9 @@

+               printf("try ACL %d\n", acl->a_line); 
                LIST_FOREACH(ac, &acl->a_clause, ac_list) {
                        if ((found = (*ac->ac_acr->acr_filter)
                                        (&ac->ac_data, stage, &ap,
priv)) == 0)
                                break;

+                       printf("  found 0x%x\n", found);
                        retval |= found;
                }



Now, which printf(...) I should change? The first ot both? And what is
the exact syntax (I'm not coder:( )?

-- 
Mart

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.