Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Mar 1999 15:34:59 +0000
From:      Sam Eaton <sam@pavilion.net>
To:        International Man of Mystery <wcooley@nakedape.navi.net>
Cc:        freebsd-isp@FreeBSD.ORG
Subject:   Re: Another question on mail and attachments
Message-ID:  <19990319153459.I22613@fredead.pavilion.net>
In-Reply-To: <Pine.LNX.4.10.9903181039030.28463-100000@rheingold>; from International Man of Mystery on Thu, Mar 18, 1999 at 10:53:53AM -0800
References:  <Pine.LNX.4.10.9903181039030.28463-100000@rheingold>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Mar 18, 1999 at 10:53:53AM -0800, International Man of Mystery wrote:
> 
> I know this should be doable with procmail and possibly requiring
> metamail, but I'd like to know if a system exists that will:  Examine
> incoming mail for MIME attachments, save the attachments in some
> publically accessible place (ie, FTP /pub/hidden; web space), and
> send a message with the URL to the file to the user.  (It would of course
> expire the attachment after, say, 4 days or so.)  

I have a piece of perl code that does something rather like this - it's
designed to allow people to 'post' pictures to a particular newsgroup.
What they do is mail to a special mail address, which strips off the
attachments and puts them on a web page, then replaces them with a link
to where they've been stored and then posts the resulting message to the
newsgroup.

It wouldn't be hard to adapt this to do something like you describe.
My main concern would be the volume of mail you expected to handle - the
code is relatively big and slow, so I wouldn't want to chuck a lot of
mail through it.  

It's also a bit of a ghastly hack in terms of its coding style, so I'm
not sure how happy I'd be to let it escape in the state it's in at the
moment - but I'd be happy to help you produce something similar but
cleaner....

Sam.
-- 
------------------------------------------------------------------------
Sam Eaton                  Senior Systems Manager, Pavilion Internet Plc
         "Fortified with essential bitterness and sarcasm"
------------------------------------------------------------------------


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-isp" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990319153459.I22613>