aboutsummaryrefslogtreecommitdiffstats
path: root/fetchmail.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1997-01-30 17:29:36 +0000
committerEric S. Raymond <esr@thyrsus.com>1997-01-30 17:29:36 +0000
commit65179f921d37756ed89e1ef7965e13bd5f319650 (patch)
treefdabc324b67d060eab0509040cbc1a7b998658a5 /fetchmail.c
parent6a529e4eac97ac7255229fbadcac721b5ba6925b (diff)
downloadfetchmail-65179f921d37756ed89e1ef7965e13bd5f319650.tar.gz
fetchmail-65179f921d37756ed89e1ef7965e13bd5f319650.tar.bz2
fetchmail-65179f921d37756ed89e1ef7965e13bd5f319650.zip
Add stripcr option.
svn path=/trunk/; revision=842
Diffstat (limited to 'fetchmail.c')
-rw-r--r--fetchmail.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/fetchmail.c b/fetchmail.c
index 75d9e542..47fcfe72 100644
--- a/fetchmail.c
+++ b/fetchmail.c
@@ -630,6 +630,10 @@ static int load_params(int argc, char **argv, int optind)
ctl->server.lead_server = &(ctl->server);
no_new_server:;
+ /* if stripcr hasn't been set, default it asccording to MDA */
+ if (ctl->stripcr == -1)
+ ctl->stripcr = !ctl->mda;
+
/* plug in the semi-standard way of indicating a mail address */
if (ctl->server.envelope == (char *)NULL)
ctl->server.envelope = "X-Envelope-To:";
@@ -826,6 +830,9 @@ void dump_params (struct query *ctl)
printf(" Rewrite of server-local addresses is %sabled (--norewrite %s).\n",
ctl->no_rewrite ? "dis" : "en",
ctl->no_rewrite ? "on" : "off");
+ printf(" Carriage-return stripping is %sabled (--stripcr %s).\n",
+ ctl->stripcr ? "en" : "dis",
+ ctl->stripcr ? "on" : "off");
if (ctl->limit)
printf(" Message size limit is %d bytes (--limit %d).\n",
ctl->limit, ctl->limit);