-/* $OpenBSD: send.c,v 1.20 2008/07/16 15:11:16 martynas Exp $ */
+/* $OpenBSD: send.c,v 1.21 2008/07/16 15:14:33 martynas Exp $ */
/* $NetBSD: send.c,v 1.6 1996/06/08 19:48:39 christos Exp $ */
/*
#if 0
static const char sccsid[] = "@(#)send.c 8.1 (Berkeley) 6/6/93";
#else
-static const char rcsid[] = "$OpenBSD: send.c,v 1.20 2008/07/16 15:11:16 martynas Exp $";
+static const char rcsid[] = "$OpenBSD: send.c,v 1.21 2008/07/16 15:14:33 martynas Exp $";
#endif
#endif /* not lint */
if (fsize(mtf) == 0) {
if (value("skipempty") != NULL)
goto out;
- if (hp->h_subject == NULL)
+ if (hp->h_subject == NULL || *hp->h_subject == '\0')
puts("No message, no subject; hope that's ok");
else
puts("Null message body; hope that's ok");