Re: Wildcard in aliasfile?

Top Page
Delete this message
Reply to this message
Author: Philip Hazel
Date:  
To: Daniel Ryde
CC: Exim Users
Subject: Re: Wildcard in aliasfile?
On Thu, 23 Oct 1997, Daniel Ryde wrote:

> Is it impossible to use wildcard in an aliasfile?


Not in the current release.

> I get an error if I set "search_type = lsearch*":


But I made this possible for the next release, and I posted the patch to
the list fairly recently. Here it is again.

-- 
Philip Hazel                   University Computing Service,
ph10@???             New Museums Site, Cambridge CB2 3QG,
P.Hazel@???          England.  Phone: +44 1223 334714



*** exim-1.73/src/directors/aliasfile.h        Tue Sep 30 14:54:44 1997
--- src/directors/aliasfile.h    Tue Oct  7 15:11:51 1997
***************
*** 21,26 ****
--- 21,27 ----
    uid_t uid;
    gid_t gid;
    int   modemask;
+   int   partial_match;
    int   search_type;
    int  *owners;
    int  *owngroups;


*** exim-1.73/src/directors/aliasfile.c        Tue Sep 30 14:54:45 1997
--- src/directors/aliasfile.c    Tue Oct  7 15:11:57 1997
***************
*** 18,23 ****
--- 18,25 ----
        (void *)(offsetof(aliasfile_director_options_block, expand_gid)) },
    { "*expand_user",       opt_stringptr | opt_hidden,
        (void *)(offsetof(aliasfile_director_options_block, expand_uid)) },
+   { "*partial_match", opt_int | opt_hidden,
+       (void *)(offsetof(aliasfile_director_options_block, partial_match)) },
    { "*set_group",         opt_bool | opt_hidden,
        (void *)(offsetof(aliasfile_director_options_block, gid_set)) },
    { "*set_user",          opt_bool | opt_hidden,
***************
*** 88,93 ****
--- 90,96 ----
    -1,       /* uid */
    -1,       /* gid */
    022,      /* modemask */
+   -1,       /* partial_match */
    -1,       /* search_type */
    NULL,     /* owners */
    NULL,     /* owngroups */
***************
*** 291,298 ****
  /* Now search the file (or whatever) for the entry we are interested in.
  The text is returned in dynamic store. */


! aliastext = search_find(handle, filename, query, ob->search_type, -1, NULL,
! &error);

  if (aliastext == NULL)
    {
--- 294,301 ----
  /* Now search the file (or whatever) for the entry we are interested in.
  The text is returned in dynamic store. */


! aliastext = search_find(handle, filename, query, ob->search_type,
! ob->partial_match, NULL, &error);

  if (aliastext == NULL)
    {



--
* This is sent by the exim-users mailing list.  To unsubscribe send a
    mail with subject "unsubscribe" to exim-users-request@???
* Exim information can be found at http://www.exim.org/