Thread View: news.software.nntp
1 messages
1 total messages
Started by Edward Siewick
Tue, 30 Nov 1999 00:00
Filter & BODY Re-write
Author: Edward Siewick
Date: Tue, 30 Nov 1999 00:00
Date: Tue, 30 Nov 1999 00:00
46 lines
2527 bytes
2527 bytes
Hi. I'm looking for a way to re-write some NNTP headers and more importantly some aspects of the message BODY on a specific in-coming feed. The filter_innd.pl mechanism is the wrong place. Is there a "right" or "best" way to handle this sort of requirement? I'm dealing with a non-public newsfeed of about 100 newsgroups. Traffic is a few dozen posts per hour, primarily gateway'd from 350 non-Usenet sites running Macintosh-based FirstClass servers. The gateway unfortunately does not properly handle MIME attachments. The attachments themselves are OK; it's the envelop that's FUBAR'd. For _everything_ it's # Content-Type: text/plain; charset=ISO-8859-1 instead of # Content-Type: multipart/mixed; boundary="---whatever" Buried in the body, the attachments are introduced as so: # Content-Type: image/gif; name="bg.gif" # Content-Transfer-Encoding: base64 # Content-Disposition: inline; filename="bg.gif" Obviously, it'd be best if this were fixed at the sending gateway. But it's taken about five years for the folks with the FC gateway to get this far. I'm not much interested in waiting another five years to see the MIME attachments fixed. So I'm thinking the most expedient approach would be to just convert everything from this feed arriving as "Content-Type: text/plain" to multipart/mixed, wrap the BODY in MIME boundaries, also tossing in a boundary if ^Content-Type: appears in the BODY. But where does such a thing get added? I know I can filter outbound items in newsfeeds with something modeled after news2mail. Do I just send everything in this feed to myself? Without duplicating? Clues, hints, comments, canned solutions all welcome. Edward Siewick -- ESiewick 'a' DigiPro.com DigiPro Digital Productions, LLC Voice: 703-522-8465 3100 North Quincy Street Fax: 703-522-8417 Arlington, Virginia 22207
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads