X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=postlicyd%2Fmatch.c;h=d50b12ac4d7e9cb73898cb748b17299340ee337d;hb=59b8220d0227fe68537a563b3e5fa2e63e26bc0d;hp=b6d108f070bcf48f8eaff0a6186feae7f6fabe4f;hpb=520b2f3bb198bfbb88b90b058ef610f0a9b980c6;p=apps%2Fpfixtools.git diff --git a/postlicyd/match.c b/postlicyd/match.c index b6d108f..d50b12a 100644 --- a/postlicyd/match.c +++ b/postlicyd/match.c @@ -133,7 +133,7 @@ static bool match_filter_constructor(filter_t *filter) condition.field = policy_tokenize(p, n - p); PARSE_CHECK(condition.field >= PTK_HELO_NAME && condition.field < PTK_SMTPD_ACCESS_POLICY, - "invalid field name %.*s", n - p, p); + "invalid field name %.*s", (int)(n - p), p); p = skipspaces(n); n = p + 1; PARSE_CHECK(IS_OP_START(*p) && IS_OP_END(*n), @@ -189,7 +189,9 @@ static inline bool match_condition(const match_condition_t *cond, const query_t CASE(HELO_NAME, helo_name) CASE(QUEUE_ID, queue_id) CASE(SENDER, sender) + CASE(SENDER_DOMAIN, sender_domain) CASE(RECIPIENT, recipient) + CASE(RECIPIENT_DOMAIN, recipient_domain) CASE(RECIPIENT_COUNT, recipient_count) CASE(CLIENT_ADDRESS, client_address) CASE(CLIENT_NAME, client_name)