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

"~" - special character for smtpserver?



Coming through rfc821scn.c in smtpserver I see definition for '~' (tilde) 
as follows:

static int char_array[] = {
		/*        /----------------- CHAR_ALPHA
			  | /--------------- CHAR_ALNUM
			  | | /------------- CHAR_SPECL
			  | | | /----------- CHAR_DIGIT
			  | | | | /--------- CHAR_C
			  | | | | | /------- CHAR_X
			  | | | | | | /----- CHAR_Q
			  | | | | | | | V V  Unused	*/
/* 126: `~'    */ CHR_ENT(0,0,1,0,0,1,1,0,0),

However, according to RFC821:

            <a> ::= any one of the 52 alphabetic characters A through Z
                      in upper case and a through z in lower case
            <c> ::= any one of the 128 ASCII characters, but not any
                      <special> or <SP>
            <d> ::= any one of the ten digits 0 through 9
            <q> ::= any one of the 128 ASCII characters except <CR>,
                      <LF>, quote ("), or backslash (\)
            <x> ::= any one of the 128 ASCII characters (no exceptions)
            <special> ::= "<" | ">" | "(" | ")" | "[" | "]" | "\" | "."
                      | "," | ";" | ":" | "@"  """ | the control
                      characters (ASCII codes 0 through 31 inclusive and
                      127)

the character '~' should not be considered as special one as it has ASCII
code of 126.




--
-- Kamil.Kukura@tuke.sk
-- --------------------
-- MIME, ISO-Latin-2
--