From owner-freebsd-questions@FreeBSD.ORG Wed Jan 30 07:05:13 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2CF6416A421 for ; Wed, 30 Jan 2008 07:05:13 +0000 (UTC) (envelope-from rakhesh@rakhesh.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.158]) by mx1.freebsd.org (Postfix) with ESMTP id A7AAF13C45D for ; Wed, 30 Jan 2008 07:05:12 +0000 (UTC) (envelope-from rakhesh@rakhesh.com) Received: by fg-out-1718.google.com with SMTP id 16so134845fgg.35 for ; Tue, 29 Jan 2008 23:05:11 -0800 (PST) Received: by 10.82.153.5 with SMTP id a5mr774179bue.9.1201676710939; Tue, 29 Jan 2008 23:05:10 -0800 (PST) Received: from smtp.home.rakhesh.com ( [82.178.100.245]) by mx.google.com with ESMTPS id g11sm10237990gve.6.2008.01.29.23.05.08 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 29 Jan 2008 23:05:10 -0800 (PST) Received: from obelix (obelix [192.168.17.13]) by smtp.home.rakhesh.com (Postfix) with ESMTP id 301821140D; Wed, 30 Jan 2008 11:04:06 +0400 (GST) Date: Wed, 30 Jan 2008 11:04:06 +0400 (GST) X-X-Sender: rakhesh@obelix.home.rakhesh.com To: Olivier Nicole In-Reply-To: <200801300536.m0U5aXvV053293@banyan.cs.ait.ac.th> Message-ID: <20080130110056.E5828@obelix.home.rakhesh.com> References: <20080130092413.K4947@obelix.home.rakhesh.com> <200801300536.m0U5aXvV053293@banyan.cs.ait.ac.th> X-Blog: http://rakhesh.com/ X-Notes: http://rakhesh.net/ MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed From: Rakhesh Sasidharan Cc: freebsd-questions@freebsd.org Subject: Re: OT: Downloading file by sending email X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jan 2008 07:05:13 -0000 Olivier Nicole wrote: >> I want to setup a service such that sending a mail to say >> "someaddress@mydomain" with a list of links per line results in my machine >> downloading the files at these links replying with all these files >> attached. > > Although I don't know of such a service (I recall hearing about such > service ages ago) it sounds not too difficult to built, for example in > Perl, using Curl for downloading and some Perl modules to build a MIME > email to send back. Thanks Olivier. I was stumped on how to make maildrop pipe the email to some program. A bit of research on that (and reading the manpages) showed me how. Now that I've figured that part, the problem is not too difficult. Gotta make a shell/ perl script now to parse the message and do the downloading etc ... Thanks, Rakhesh --- http://rakhesh.net/