[PLUG] Email File Uploading

Jeme A Brelin jeme at brelin.net
Sat Feb 1 13:33:02 UTC 2003


On Sat, 1 Feb 2003, AthlonRob wrote:
> But does anybody know of such a thing that will screen emails to make
> sure they are under 20KB in size, then decode them, just putting the
> attachment into a seperate directory?
>
> This is all very preliminary, I'd just like to not re-invent the wheel
> if at all possible... I would think such a thing should be possible with
> procmail, some mime utilities, and some fancy bash scripting....

Uh... aren't you making this kind difficult for no reason?

You could just pipe the mails to a script that runs uudecode or munpack
and puts the file in /tmp and then only moves it if the size is alright
and sends a reply mail if it's too big (or whatever you need to do).

J.
-- 
   -----------------
     Jeme A Brelin
    jeme at brelin.net
   -----------------
 [cc] counter-copyright
 http://www.openlaw.org




More information about the PLUG mailing list