aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS1
-rw-r--r--options.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index b29fb65c..8634f691 100644
--- a/NEWS
+++ b/NEWS
@@ -16,6 +16,7 @@ fetchmail-4.3.1 ()
* Fixed a bad interaction between --limit and the repoll feature.
* = is now optional in global options.
* Code for parsing Received headers now strips out RFC822 routes.
+* Fixed processing of -S argument so giving a comma-separated list works.
* Added --invisible option. Note: you can now either make fetchmail generate
a Received header (the default) *or* spoof your listener into thinking
fetchmail connected from the mailserver machine, *but not both*.
diff --git a/options.c b/options.c
index eaf5606c..11d4cdef 100644
--- a/options.c
+++ b/options.c
@@ -294,7 +294,7 @@ struct query *ctl; /* option record to be initialized */
strcpy(buf, optarg);
cp = strtok(buf, ",");
do {
- save_str(&ctl->smtphunt, -1, optarg);
+ save_str(&ctl->smtphunt, -1, cp);
} while
((cp = strtok((char *)NULL, ",")));
ocount++;