extract all images from spam folder?
Tom G. Christensen
tgc at statsbiblioteket.dk
Wed Feb 7 08:35:54 CET 2007
Chris Yuzik wrote:
> We have MailScanner set to quarantine all the spam messages, and in
> /var/spool/MailScanner/quarantine/<date>/spam there are all the messages
> as one file for each.
>
> What I would like to do is extract all of the attached images from all
> the messages in the folder and have a look at them. Would also be useful
> for testing fuzzyocr. Is there an easy way to accomplish this from the
> shell?
>
# cd <spamfolder>
# for i in *; do uudeview -i -m +e .jpg.gif.png -p /tmp/spampics $i; done
The key is ofcourse uudeview that does uu/yenc/base64 decoding.
-tgc
More information about the MailScanner
mailing list