aboutsummaryrefslogtreecommitdiffstats
path: root/driver.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1996-11-04 15:22:48 +0000
committerEric S. Raymond <esr@thyrsus.com>1996-11-04 15:22:48 +0000
commit4d72cc72be7bdc95527d09f9251f95ad9f743098 (patch)
tree22b9d9943e01bff30a45074dbc1497960005c5fc /driver.c
parentffc82c690f370ed07611d1d0f9a0885395048527 (diff)
downloadfetchmail-4d72cc72be7bdc95527d09f9251f95ad9f743098.tar.gz
fetchmail-4d72cc72be7bdc95527d09f9251f95ad9f743098.tar.bz2
fetchmail-4d72cc72be7bdc95527d09f9251f95ad9f743098.zip
Try to at least complain coherently when no from header.
svn path=/trunk/; revision=476
Diffstat (limited to 'driver.c')
-rw-r--r--driver.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/driver.c b/driver.c
index b060885f..9063e865 100644
--- a/driver.c
+++ b/driver.c
@@ -667,6 +667,12 @@ struct query *ctl; /* query control record */
return(PS_SMTP);
}
+ if (!fromhdr)
+ {
+ fprintf(stderr, "fetchmail: I see no From header\n");
+ return(PS_SMTP);
+ }
+
if (SMTP_from(sinkfp, nxtaddr(fromhdr)) != SM_OK)
{
fprintf(stderr, "fetchmail: SMTP listener is confused\n");