Skip to content
Snippets Groups Projects
Commit e904206b authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Fix the regex in the parsing of the "References" header field

We only want one Message-ID (we'll use the last, since that appears to be the
message being replied to based on SLRN behavior). This fixes reply linkage
when posing from newsreaders that put multiple message-IDs in the
references header field. This is required for SBBSecho to do its magic
creation of the FTN REPLY kludge during export.

This is the fix that Accession was looking for, I think.
parent ca6360b6
Branches
Tags
No related merge requests found
......@@ -170,7 +170,7 @@ function parse_news_header(hdr, line)
case "references":
hdr.references=data;
if(!hdr.reply_id && data.length)
hdr.reply_id=data.match(/(?:\S+\s)*(\S+)$/)[1];
hdr.reply_id=data.match(/<[^\<]*>$/);
break;
case "user-agent":
hdr.editor=data;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment