X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/62ab3819f29a419801665c74944d973101c9c466..cf1f3bdaa19bf1b5e1e99ee1e8a28d61a524395e:/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) {