* 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.
+* Fixed processing of -S/-r arguments so giving a comma-separated list works.
+* Don't query for the fetchmail host machine by default in ETRN mode.
* 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*.
-There are 277 people on fetchmail-friends and 20 on fetchmail-announce.
+There are 272 people on fetchmail-friends and 36 on fetchmail-announce.
------------------------------------------------------------------------------
fetchmail-4.3.0 (Mon Oct 6 16:44:38 EDT 1997)
errno = 0;
- /* run down the SMTP hunt list looking for a server that's up */
+ /*
+ * Run down the SMTP hunt list looking for a server that's up.
+ * Use both explicit hunt entries (value TRUE) and implicit
+ * (default) ones (value FALSE).
+ */
for (idp = ctl->smtphunt; idp; idp = idp->next)
{
ctl->smtphost = idp->id; /* remember last host tried. */
def_opts.server.protocol = P_AUTO;
def_opts.server.timeout = CLIENT_TIMEOUT;
def_opts.remotename = user;
- save_str(&def_opts.smtphunt, TRUE, fetchmailhost);
+ save_str(&def_opts.smtphunt, FALSE, fetchmailhost);
save_str(&def_opts.smtphunt, FALSE, "localhost");
def_opts.expunge = 1;
printf(" Messages will be SMTP-forwarded to:");
for (idp = ctl->smtphunt; idp; idp = idp->next)
- printf(" %s", idp->id);
+ if (ctl->server.protocol != P_ETRN || idp->val.num)
+ {
+ printf(" %s", idp->id);
+ if (!idp->val.num)
+ printf(" (default)");
+ }
printf("\n");
}
if (ctl->preconnect)
strcpy(buf, optarg);
cp = strtok(buf, ",");
do {
- save_str(&ctl->mailboxes, -1, optarg);
+ save_str(&ctl->mailboxes, -1, cp);
} while
((cp = strtok((char *)NULL, ",")));
break;
strcpy(buf, optarg);
cp = strtok(buf, ",");
do {
- save_str(&ctl->smtphunt, -1, cp);
+ save_str(&ctl->smtphunt, TRUE, cp);
} while
((cp = strtok((char *)NULL, ",")));
ocount++;
FLAG_FORCE(remotename);
FLAG_FORCE(password);
if (cmd_opts.mailboxes)
- save_str(¤t.mailboxes, -1, cmd_opts.mailboxes->id);
+ current.mailboxes = cmd_opts.mailboxes;
if (cmd_opts.smtphunt)
- save_str(¤t.smtphunt, -1, cmd_opts.smtphunt->id);
+ current.smtphunt = cmd_opts.smtphunt;
FLAG_FORCE(mda);
FLAG_FORCE(preconnect);
FLAG_FORCE(postconnect);