diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1996-11-04 15:22:48 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1996-11-04 15:22:48 +0000 |
commit | 4d72cc72be7bdc95527d09f9251f95ad9f743098 (patch) | |
tree | 22b9d9943e01bff30a45074dbc1497960005c5fc | |
parent | ffc82c690f370ed07611d1d0f9a0885395048527 (diff) | |
download | fetchmail-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
-rw-r--r-- | driver.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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"); |