From 2e0c31aeded014200b1d8f537e743e91bc16a10d Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sat, 5 Oct 1996 15:43:33 +0000 Subject: Separate MDA expansion logic fronm the list build. svn path=/trunk/; revision=227 --- fetchmail.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fetchmail.c b/fetchmail.c index ecb707c1..c91b10a0 100644 --- a/fetchmail.c +++ b/fetchmail.c @@ -151,7 +151,10 @@ char **argv; hostp->next = hostlist; hostlist = hostp; + } + /* expand MDA commands */ + for (hostp = hostlist; hostp; hostp = hostp->next) if (hostp->mda[0]) { int argi; @@ -176,7 +179,6 @@ char **argv; if ((argp = strrchr(hostp->mda_argv[1], '/')) != (char *)NULL) hostp->mda_argv[1] = argp + 1 ; } - } /* set up to do lock protocol */ if ((tmpdir = getenv("TMPDIR")) == (char *)NULL) -- cgit v1.2.3