Fix detection of non-mime messages when the charset is not enclosed
authorKimmo Suominen <kimmo@suominen.com>
Thu, 2 Jan 2003 04:07:49 +0000 (04:07 +0000)
committerKimmo Suominen <kimmo@suominen.com>
Thu, 2 Jan 2003 04:07:49 +0000 (04:07 +0000)
in double quotes.  (Not perfect yet, but 97% effective.)

uip/show.c

index 1137c39..5773b56 100644 (file)
@@ -474,7 +474,7 @@ invalid:
                                *bp = '\0';
                        } else {
                            for (bp = dp; *bp; bp++)
                                *bp = '\0';
                        } else {
                            for (bp = dp; *bp; bp++)
-                               if (isspace (*bp)) {
+                               if (!istoken (*bp)) {
                                    *bp = '\0';
                                    break;
                                }
                                    *bp = '\0';
                                    break;
                                }