Skip to content
Snippets Groups Projects
Commit e437e68e authored by rswindell's avatar rswindell
Browse files

Added X-FTN-SEEN-BY and X-FTN-PATH to news headers output from write_news_header()

at Nelgin's request. Hopefully everyone else wants this in their exported news headers
too. No "folding" will take place and these can be rather long values, so that might be
a problem.
parent e11702c8
No related branches found
No related tags found
No related merge requests found
......@@ -8,9 +8,11 @@
if(!js.global || js.global.mail_get_name==undefined)
load("mailutil.js");
FIDOCTRL = 0xa0 // from smbdefs.h
FIDOCTRL = 0xa0 // from smbdefs.h
FIDOSEENBY = 0xa2 // from smbdefs.h
FIDOPATH = 0xa3 // from smbdefs.h
RFC822HEADER = 0xb0 // from smbdefs.h
function write_news_header(hdr,writeln)
{
/* Required header fields */
......@@ -58,8 +60,13 @@ function write_news_header(hdr,writeln)
if(hdr.field_list[i].data.toLowerCase().indexOf("content-type:")==0)
content_type = hdr.field_list[i].data;
writeln(hdr.field_list[i].data);
} else if(hdr.field_list[i].type==FIDOCTRL)
} else if(hdr.field_list[i].type==FIDOCTRL) {
writeln("X-FTN-Kludge: " + hdr.field_list[i].data);
} else if(hdr.field_list[i].type==FIDOSEENBY) {
writeln("X-FTN-SEEN-BY: " + hdr.field_list[i].data);
} else if(hdr.field_list[i].type==FIDOPATH) {
writeln("X-FTN-PATH: " + hdr.field_list[i].data);
}
}
}
if(content_type==undefined) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment