X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fsrc%2Fmatch.c;h=6a331419422b8a06134206e7c46d4f3d6b4af35a;hb=6a9cf7f890226aa085842cd3d94b13e78ea31637;hp=65d44198e6a25b82f81e31a5ee09b9b3c130eaa2;hpb=43ba45ce62100bc1dbc9b04b5d869f59026783f5;p=user%2Fhenk%2Fcode%2Fexim.git diff --git a/src/src/match.c b/src/src/match.c index 65d44198e..6a3314194 100644 --- a/src/src/match.c +++ b/src/src/match.c @@ -104,8 +104,6 @@ uschar *filename = NULL; uschar *keyquery, *result, *semicolon; void *handle; -error = error; /* Keep clever compilers from complaining */ - if (valueptr) *valueptr = NULL; /* For regular expressions, use cb->origsubject rather than cb->subject so that @@ -286,22 +284,7 @@ if (!cb->use_partial) partial = -1; /* Set the parameters for the three different kinds of lookup. */ -keyquery = semicolon + 1; -Uskip_whitespace(&keyquery); - -if (mac_islookup(search_type, lookup_absfilequery)) - { - filename = keyquery; - while (*keyquery && !isspace(*keyquery)) keyquery++; - filename = string_copyn(filename, keyquery - filename); - Uskip_whitespace(&keyquery); - } - -else if (!mac_islookup(search_type, lookup_querystyle)) - { - filename = keyquery; - keyquery = s; - } +keyquery = search_args(search_type, s, semicolon+1, &filename, opts); /* Now do the actual lookup; throw away the data returned unless it was asked for; partial matching is all handled inside search_find(). Note that there is @@ -803,7 +786,7 @@ while ((sss = string_nextinlist(&list, &sep, NULL, 0))) if (listname[0] == 0) listname = string_sprintf("\"%s\"", *listptr); log_write(0, LOG_MAIN|LOG_PANIC_DIE, "%s", - string_open_failed(errno, "%s when checking %s", sss, listname)); + string_open_failed("%s when checking %s", sss, listname)); } /* Trailing comments are introduced by #, but in an address list or local @@ -1019,8 +1002,6 @@ uschar *subject = cb->address; const uschar *s; uschar *pdomain, *sdomain; -error = error; /* Keep clever compilers from complaining */ - DEBUG(D_lists) debug_printf("address match test: subject=%s pattern=%s\n", subject, pattern);