download and parse the attachment coming with emails automatically

Andy Bradford amb-plug at bradfords.org
Mon Apr 3 20:41:29 MDT 2006


Thus said Jeff Schroeder on Mon, 03 Apr 2006 17:42:43 MDT:

> #!/bin/bash
> out=/tmp/`date +%s`$$
> cat > $out
> if [ -z "`grep 'evil stuff' $out`" ]; then
> cat $out > /var/qmail/bin/qmail-queue
> rm -f $out
> fi

At least one critical error exists in this script. You don't really want
to overwrite /var/qmail/bin/qmail-queue do you?

Andy
-- 
[-----------[system uptime]--------------------------------------------]
  8:41pm  up 1 day, 12:03,  3 users,  load average: 1.14, 1.08, 1.08





More information about the PLUG mailing list