[Raw Msg Headers][Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

correct rfc821 scan



Well, again,

	rfc821 says:

            <c> ::= any one of the 128 ASCII characters, but not any
                      <special> or <SP>
            <dot-string> ::= <string> | <string> "." <dot-string>
            <string> ::= <char> | <char> <string>
            <char> ::= <c> | "\" <x>

	This (above) can be a bit confusing, but it has nothing
to do with a check after dot, the only purpose for making this
complicated is to make string definition recursive.

	Thus the proper patch:

*** rfc821scn.c.orig    Fri Sep  5 13:03:46 1997
--- rfc821scn.c Thu Oct  9 15:04:01 1997
***************
*** 836,846 ****
        return s;               /* Missing string */
      while (*q == '.') {               /* Well, intermediate dot.. */
        p = q + 1;
-       if (!is_821_alnum(*p)) {
-         rfc821_error_ptr = q;
-         rfc821_error = "After a dot, something which is not alphanumeric";
-         return s;
-       }
        q = rfc821_string(p, strict);
        if (q == p)
            return s;           /* Missing string */
--- 836,841 ----

								alexis
-- 
			Where the wild horses run