X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/62ab3819f29a419801665c74944d973101c9c466..c9366c80d5a32921fe60a1fb5ba86ce3e88e292d:/sbr/mf.c diff --git a/sbr/mf.c b/sbr/mf.c index 84f1afa9..d99d2b38 100644 --- a/sbr/mf.c +++ b/sbr/mf.c @@ -8,8 +8,6 @@ */ #include -#include -#include #include /* @@ -232,6 +230,15 @@ getadrx (const char *addrs) break; } + /* + * Reject the address if key fields contain 8bit characters + */ + + if (contains8bit(mbox, NULL) || contains8bit(host, NULL) || + contains8bit(path, NULL) || contains8bit(grp, NULL)) { + strcpy(err, "Address contains 8-bit characters"); + } + if (err[0]) for (;;) { switch (last_lex) {