aboutsummaryrefslogtreecommitdiffstats
path: root/env.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2002-02-01 21:47:50 +0000
committerEric S. Raymond <esr@thyrsus.com>2002-02-01 21:47:50 +0000
commit621035704f4e6b2cb607f0dca46312abe54b0c54 (patch)
treed621f9e5aba156ee381370c0df4cc7660a2d2e47 /env.c
parent5ef9c343fc4b219f01498be7c88e1fdae67c35ee (diff)
downloadfetchmail-621035704f4e6b2cb607f0dca46312abe54b0c54.tar.gz
fetchmail-621035704f4e6b2cb607f0dca46312abe54b0c54.tar.bz2
fetchmail-621035704f4e6b2cb607f0dca46312abe54b0c54.zip
Fixes by Matthias Andree.
svn path=/trunk/; revision=3571
Diffstat (limited to 'env.c')
-rw-r--r--env.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/env.c b/env.c
index 93651a44..e69fea0f 100644
--- a/env.c
+++ b/env.c
@@ -66,6 +66,19 @@ void envquery(int argc, char **argv)
exit(PS_UNDEFINED);
}
+ if (getenv("NULLMAILER_FLAGS") && strcmp(getenv("NULLMAILER_FLAGS"), ""))
+ {
+ fprintf(stderr,
+ GT_("%s: The NULLMAILER_FLAGS environment variable is set.\n"
+ "This is dangerous as it can make nullmailer-inject
+or nullmailer's\n"
+ "sendmail wrapper tamper with your From:, Message-ID: or Return-Path: headers.\n"
+ "Try \"env NULLMAILER_FLAGS= %s YOUR ARGUMENTS HERE\"\n"
+ "%s: Abort.\n"),
+ program_name, program_name, program_name);
+ exit(PS_UNDEFINED);
+ }
+
if (!(pwp = getpwuid(getuid())))
{
fprintf(stderr,