- expand("\001z/.forward", buf, &buf[sizeof buf - 1], e);
- include(buf, TRUE, user, sendq, e);
+ define('u', user->q_user, e);
+ define('h', user->q_host, e);
+ if (ForwardPath == NULL)
+ ForwardPath = newstr("\001z/.forward");
+
+ for (pp = ForwardPath; pp != NULL; pp = ep)
+ {
+ char buf[256];
+
+ ep = strchr(pp, ':');
+ if (ep != NULL)
+ *ep = '\0';
+ expand(pp, buf, &buf[sizeof buf - 1], e);
+ if (ep != NULL)
+ *ep++ = ':';
+ if (tTd(27, 3))
+ printf("forward: trying %s\n", buf);
+ if (include(buf, TRUE, user, sendq, e) == 0)
+ break;
+ }