Re: OT: Downloading file by sending email

2008-01-31 Thread Eduardo Morras

At 06:30 30/01/2008, you wrote:

Hi,

An off-topic question.

I run FreeBSD 6.2/i386 with Postfix and Maildrop (for filtering and delivery).

I want to setup a service such that sending a 
mail to say [EMAIL PROTECTED] with a list 
of links per line results in my machine 
downloading the files at these links replying with all these files attached.


Is there any port which provides a functionality 
like this? Or is it possible to put together 
such a setup in place? I tried a Google search 
but didn't manage to frame this question concisely enough to get hits ...


Also, many many years ago I remember using 
similar services on the Internet. I can't for 
the life of me remember their names now. Any one 
here recollects/ has used such services?


Thanks, Rakhesh


There is an email2cvs in ports, don't know the 
exact name, but i allows you to do cvs commits, 
updates, etc  via mail; perhaps it can help you


For security, add in the mail with the file 
request a login/password. Check the From (only 
tyour email account) and the l/p.


Also there is a gnu.org project for a p2p using mail.

HTH

-
Useful Acronyms: GPL = Greedy Pengüin Licence 


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: OT: Downloading file by sending email

2008-01-31 Thread Rakhesh Sasidharan

Olivier Nicole wrote:


A second thought...


I want to setup a service such that sending a mail to say
[EMAIL PROTECTED] with a list of links per line results in my machine
downloading the files at these links replying with all these files
attached.


So you have any direct connection to the machine that will host the
downloading facility?


Unfortunately, no. Else I could have done the SSH thing like you suggested 
...




If you can ssh to that machine, it is easier to set-up a proxy on the
machine and do some ssh tunneling.

Bests,



Regards,

Rakhesh

---
http://rakhesh.net/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: OT: Downloading file by sending email

2008-01-30 Thread Wojciech Puchar
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 ...


such kind of service is one of the easiest to be abused
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: OT: Downloading file by sending email

2008-01-30 Thread Wojciech Puchar


I want to setup a service such that sending a mail to say 
[EMAIL PROTECTED] with a list of links per line results in my machine 
downloading the files at these links replying with all these files attached.


Is there any port which provides a functionality like this? Or is it possible 
to put together such a setup in place? I tried a Google search but didn't


very easy using just bash curl metamail etc...

but first think about protecting it from abuse like

a) someone will use it as spamming machine, writing advert as image, and 
sending it through your service to 10 users (using your bandwidth) by 
using robot that will 10 times request to send an URL to mail.


b) someone else will be trying to overload your service requesting to mail 
lots of huge files many times (limit total size+size of one file)




you must do something like captcha or at least - first sending mail 
without attachment like this


- Someone - possibly you - requested to download and send such files:

URL list here

to your mail.

if it's you, jest use reply with this code: unique code here


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: OT: Downloading file by sending email

2008-01-30 Thread Rakhesh Sasidharan

Wojciech Puchar wrote:



I want to setup a service such that sending a mail to say 
[EMAIL PROTECTED] with a list of links per line results in my machine 
downloading the files at these links replying with all these files 
attached.


Is there any port which provides a functionality like this? Or is it 
possible to put together such a setup in place? I tried a Google search but 
didn't


very easy using just bash curl metamail etc...

but first think about protecting it from abuse like


Thanks Wojciech.

Actually, I am setting this up just for my use. (Place I work doesn't 
allow downloads, and sometimes I need to download a thing or two, so 
thought let me set something like this up for my own use). But your points 
make sense. I'll try and make sure the service isn't abuse-able.


Thanks again for the pointers!

Regards,
Rakhesh




a) someone will use it as spamming machine, writing advert as image, and 
sending it through your service to 10 users (using your bandwidth) by 
using robot that will 10 times request to send an URL to mail.


b) someone else will be trying to overload your service requesting to mail 
lots of huge files many times (limit total size+size of one file)




you must do something like captcha or at least - first sending mail without 
attachment like this


- Someone - possibly you - requested to download and send such files:

URL list here

to your mail.

if it's you, jest use reply with this code: unique code here


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]



Rakhesh

---
http://rakhesh.net/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: OT: Downloading file by sending email

2008-01-30 Thread Olivier Nicole
A second thought...

 I want to setup a service such that sending a mail to say 
 [EMAIL PROTECTED] with a list of links per line results in my machine 
 downloading the files at these links replying with all these files 
 attached.

So you have any direct connection to the machine that will host the
downloading facility?

If you can ssh to that machine, it is easier to set-up a proxy on the
machine and do some ssh tunneling.

Bests,

Olivier
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: OT: Downloading file by sending email

2008-01-29 Thread Olivier Nicole
 I want to setup a service such that sending a mail to say 
 [EMAIL PROTECTED] 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.

Bests,

Olivier
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


OT: Downloading file by sending email

2008-01-29 Thread Rakhesh Sasidharan

Hi,

An off-topic question.

I run FreeBSD 6.2/i386 with Postfix and Maildrop (for filtering and 
delivery).


I want to setup a service such that sending a mail to say 
[EMAIL PROTECTED] with a list of links per line results in my machine 
downloading the files at these links replying with all these files 
attached.


Is there any port which provides a functionality like this? Or is it 
possible to put together such a setup in place? I tried a Google search 
but didn't manage to frame this question concisely enough to get hits ...


Also, many many years ago I remember using similar services on the 
Internet. I can't for the life of me remember their names now. Any one 
here recollects/ has used such services?


Thanks, 
Rakhesh


---
http://rakhesh.net/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: OT: Downloading file by sending email

2008-01-29 Thread Rakhesh Sasidharan


Olivier Nicole wrote:


I want to setup a service such that sending a mail to say
[EMAIL PROTECTED] 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/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]