]> diplodocus.org Git - nmh/blobdiff - sbr/addrsbr.c
Improve these comments a bit.
[nmh] / sbr / addrsbr.c
index 3b57f20cc4a19e54949b732dad9768f1a45ba2fc..6bb94211f4f6b04828ce2c4cf994eb7bd005355f 100644 (file)
@@ -76,17 +76,22 @@ static char *grp = NULL;
 static char *note = NULL;
 static char err[BUFSIZ];
 static char adr[BUFSIZ];
+static int eai = 0;
+
+void
+enable_eai() {
+    eai = 1;
+}
 
 
 char *
 getname (const char *addrs)
 {
     struct adrx *ap;
-    const char *const eai = context_find ("eai");
     pers = mbox = host = route = grp = note = NULL;
     err[0] = '\0';
 
-    if ((ap = getadrx (addrs ? addrs : "", eai && strncasecmp (eai, "8bit", 4) == 0)) == NULL) {
+    if ((ap = getadrx (addrs ? addrs : "", eai)) == NULL) {
        return NULL;
     }