Skip to Content.
Sympa Menu

internetworkers - Re: [internetworkers] Another take on a new website..

internetworkers AT lists.ibiblio.org

Subject: Internetworkers: http://www.ibiblio.org/internetworkers/

List archive

Chronological Thread  
  • From: Steven Champeon <schampeo AT hesketh.com>
  • To: "Internetworkers: http://www.ibiblio.org/internetworkers/" <internetworkers AT lists.ibiblio.org>
  • Subject: Re: [internetworkers] Another take on a new website..
  • Date: Tue, 14 Oct 2003 11:20:19 -0400

on Tue, Oct 14, 2003 at 11:13:21AM -0400, zman wrote:
> On Tue, 14 Oct 2003, Ian Meyer wrote:
> > >> email to a specified address and then it posts the body of that mail
> > >> to a website? Or, if not, how hard would that be to make work, and
>
> Shouldn't be to hard. I would think most of it could be scripted. Though I
> would think one of the Blogging Apps would have this sort of
> functionality.

Wouldn't be hard at all, actually. Completely, insanely, ridiculously,
insecure, sure. But not hard to do. Via sendmail's aliases file:

publishthis: "|/path/to/script/that/grabs/and/publishes/the/body"

/path/to/script/that/grabs/and/publishes/the/body
#!/usr/bin/perl

while(<>) {
$str .= $_;
}
my ($head, $body) = split(/\n\n/, $str);
open(FILE, ">/some/file/on/site") or die "Nope. $!";
print FILE "$body";
close(FILE):

Or something like that, anyway. Make more complex as needed. But know
that this is insanely insecure. Greg Knauss had something like that on
metababy, IIRC.

--
hesketh.com/inc. v: (919) 834-2552 f: (919) 834-2554 w: http://hesketh.com
Book publishing is second only to furniture delivery in slowness. -b. schneier




Archive powered by MHonArc 2.6.24.

Top of Page