From: Bill W. <wo...@ne...> - 2003-01-13 20:15:57
|
Satyaki Das <sat...@st...> wrote: > Thanks, that is the problem. MH-E splits the References field > at all spaces and uses those as message-ids of ancestors. > That means it thinks that the ancestors of 30 are: > Message, from, Lisa, Fettner, and <lfettner> Satyaki, The splitting at spaces is good. You should discard any tokens that aren't message IDs, which look like this: msg-id = [CFWS] "<" id-left "@" id-right ">" [CFWS] id-left = dot-atom-text / no-fold-quote / obs-id-left id-right = dot-atom-text / no-fold-literal / obs-id-right no-fold-quote = DQUOTE *(qtext / quoted-pair) DQUOTE no-fold-literal = "[" *(dtext / quoted-pair) "]" dot-atom-text = 1*atext *("." 1*atext) atext = ALPHA / DIGIT / ; Any character except controls, "!" / "#" / ; SP, and specials. "$" / "%" / ; Used for atoms "&" / "'" / "*" / "+" / "-" / "/" / "=" / "?" / "^" / "_" / "`" / "{" / "|" / "}" / "~" qtext = NO-WS-CTL / ; Non white space controls %d33 / ; The rest of the US-ASCII %d35-91 / ; characters not including "\" %d93-126 ; or the quote character dtext = NO-WS-CTL / ; Non white space controls %d33-90 / ; The rest of the US-ASCII %d94-126 ; characters not including "[", ; "]", or "\" See rfc822-addresses-1 in rfc822.el. There's got to be more RFC 822 utility routines (or regexps) out there! If not, we should write them ;-). -- Bill Wohler <wo...@ne...> http://www.newt.com/wohler/ GnuPG ID:610BD9AD Maintainer of comp.mail.mh FAQ and MH-E. Vote Libertarian! If you're passed on the right, you're in the wrong lane. |