[thelist] Email news to a website

Hassan Schroeder hassan at webtuitive.com
Thu May 16 13:54:01 CDT 2002


Michael Galvin wrote:
>
> Is there any freely-available perl script that would allow a user to email a
> piece of news to a certain email address, and the script would automatically
> parse the mail and 'post' it to a news page on the server?

Dunno about "freely available" but ...

An email address can be aliased to a program, so it would be a very
simple script to take the message to "news at yourdomain.com" and dump
everything that looks like a header, writing the remainder to a file
in the Web docs directory. (And of course confirming that the sender
was authorized, exact implementation based on degree of paranoia!).

If you could get the sender to wrap the news content in a specified
delimiter, all the easier.

--
H*
Hassan Schroeder ----------------------------- hassan at webtuitive.com
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com

    -- creating dynamic Web sites and applications since 1994 --



More information about the thelist mailing list