message/rfc822 and perl

A

anonymous

i am trying to write a perl script to display a Usenet article over
HTTP. i remember that, about two years ago, i created a very simple
script that could do the task. unfortunately, i lost it and am now
confused. :(

from what i recall the script would just output a "Content-type:
message/rfc822\n\n" header and then the news file verbatim.
apparently, the browsers supported this since the message showed up
exactly as it should in them. however, when i tried to rewrite the
script a few days ago, the messages didn't show up right and images
don't display. i am wondering whether the browsers changed or i am
forgetting some other header or something else i must have done two
years ago to get it working.

if anyone knows or knows of any perl scripts that can help, i'd
appreciate hearing from you.
 
J

James Willmore

On 29 Aug 2003 02:29:30 -0700
i am trying to write a perl script to display a Usenet article over
HTTP. i remember that, about two years ago, i created a very simple
script that could do the task. unfortunately, i lost it and am now
confused. :(

I hate when that happens. One minute there, next gone. :(
from what i recall the script would just output a "Content-type:
message/rfc822\n\n" header and then the news file verbatim.
apparently, the browsers supported this since the message showed up
exactly as it should in them. however, when i tried to rewrite the
script a few days ago, the messages didn't show up right and images
don't display. i am wondering whether the browsers changed or i am
forgetting some other header or something else i must have done two
years ago to get it working.

if anyone knows or knows of any perl scripts that can help, i'd
appreciate hearing from you.

I'm thinking that a lot of browsers have changed over the past 2 year.
However, NNTP has not. If you're trying to get the newsfeed first,
then send the output to the browser - kinda like a proxy server - then
you might have a look at Net::NNTP. The header you're sending to the
browser may be correct, but the message format you're using may not
be. If you're getting the feed via Net::NNTP, then sending it to the
browser, you can be resonably sure the format is right.

I'd start with the message format being sent to the browser first.

HTH
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top