diff options
Diffstat (limited to 'usr.bin/mail/send.c')
-rw-r--r-- | usr.bin/mail/send.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.bin/mail/send.c b/usr.bin/mail/send.c index 0e6886c..42dd65e 100644 --- a/usr.bin/mail/send.c +++ b/usr.bin/mail/send.c @@ -323,6 +323,8 @@ mail1(hp, printheaders) } } if (fsize(mtf) == 0) { + if (value("dontsendempty") != NULL) + goto out; if (hp->h_subject == NULL) printf("No message, no subject; hope that's ok\n"); else |