aboutsummaryrefslogtreecommitdiffstats
path: root/fetchmail.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1998-01-18 06:04:54 +0000
committerEric S. Raymond <esr@thyrsus.com>1998-01-18 06:04:54 +0000
commitd71cb2abc85c55777928ce3f4084360101c9e2e6 (patch)
treefde622ce6620b0fb53e7b3065924491171583803 /fetchmail.c
parentd1852f76ae3d7e7487ca4cf43f49bf91c5b3fcab (diff)
downloadfetchmail-d71cb2abc85c55777928ce3f4084360101c9e2e6.tar.gz
fetchmail-d71cb2abc85c55777928ce3f4084360101c9e2e6.tar.bz2
fetchmail-d71cb2abc85c55777928ce3f4084360101c9e2e6.zip
Added smtpaddress option.
svn path=/trunk/; revision=1592
Diffstat (limited to 'fetchmail.c')
-rw-r--r--fetchmail.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/fetchmail.c b/fetchmail.c
index 506c11e7..49c163c2 100644
--- a/fetchmail.c
+++ b/fetchmail.c
@@ -578,6 +578,7 @@ static int load_params(int argc, char **argv, int optind)
memset(&def_opts, '\0', sizeof(struct query));
def_opts.smtp_socket = -1;
+ def_opts.smtpaddress = (char *)0;
def_opts.server.protocol = P_AUTO;
def_opts.server.timeout = CLIENT_TIMEOUT;
@@ -1012,6 +1013,9 @@ void dump_params (struct query *ctl)
printf(" (default)");
}
printf("\n");
+ if (ctl->smtpaddress)
+ printf(" Host part of MAIL FROM line will be %s\n",
+ ctl->smtpaddress);
}
if (ctl->preconnect)
printf(" Server connection will be brought up with '%s.'\n",