Article View: news.software.misc
Article #2323remove unwanted headers ??
From: aclexports
Date: Mon, 06 Nov 2000 00:00
Date: Mon, 06 Nov 2000 00:00
23 lines
1146 bytes
1146 bytes
How can I write an algorithm to remove certain headers? I have written an algorithm which scans an article line by line from the top and compares each line against a fixed text (for example Newsgroups: ) It it matches, I leave it, if it doesn't, I remove it. The alogorithm stops processing once it encounters a blank line. My problem is linewrapping. How do I make sure I don't chop off a header that i want to retain ? Which of these headers have a possibility of linewrapping ? Date: Sender: Newsgroups: Subject: References: These are the only headers I would like to retain. Thanks.
Technical Details
Message-ID:
<3a06d674.1608299@news.alt.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <3a06d674.1608299@news.alt.net> Subject: remove unwanted headers ?? Date: Mon, 06 Nov 2000 00:00:00 +0000 From: aclexports@usa.net Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 690324377 Organization: Altopia Corp. - Usenet Access - http://www.altopia.com Reply-To: aclexports@usa.net Newsgroups: news.software.readers,news.software.nntp,news.software.misc