X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fpost.c;h=ff7519760541f6f5e03962ff420597cc22eee9cb;hb=fc15b3f63b8e802f8d6dbc36fd35c0e400313a91;hp=526b5e4ecb857348f95d71602c33efb8b12cba17;hpb=356f49083391bd018b6c5dfed21e59247b4cc74a;p=mmh diff --git a/uip/post.c b/uip/post.c index 526b5e4..ff75197 100644 --- a/uip/post.c +++ b/uip/post.c @@ -709,7 +709,21 @@ putfmt (char *name, char *str, FILE *out) } if ((i = get_header (name, hdrtab)) == NOTOK) { - fprintf (out, "%s: %s", name, str); + if (strncasecmp (name, "nmh-", 4)) { + fprintf (out, "%s: %s", name, str); + } else { + /* Filter out all Nmh-* headers, because Norm asked. They + should never have reached this point. Warn about any + that are non-empty. */ + if (strcmp (str, "\n")) { + char *newline = strchr (str, '\n'); + if (newline) *newline = '\0'; + if (! whomsw) { + advise (NULL, "ignoring header line -- %s: %s", name, str); + } + } + } + return; }