aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1996-10-05 15:43:33 +0000
committerEric S. Raymond <esr@thyrsus.com>1996-10-05 15:43:33 +0000
commit2e0c31aeded014200b1d8f537e743e91bc16a10d (patch)
tree077cad669238bf1c8b1fe9f8592bc47bb75a1dc9
parentb798c2ba2cad0c6a249ec73e3ab016a8ce3dce38 (diff)
downloadfetchmail-2e0c31aeded014200b1d8f537e743e91bc16a10d.tar.gz
fetchmail-2e0c31aeded014200b1d8f537e743e91bc16a10d.tar.bz2
fetchmail-2e0c31aeded014200b1d8f537e743e91bc16a10d.zip
Separate MDA expansion logic fronm the list build.
svn path=/trunk/; revision=227
-rw-r--r--fetchmail.c4
1 files changed, 3 insertions, 1 deletions
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)