Hello Mathias,
Am 2004-01-23 18:50:16, schrieb Matias Monteverde:
Hi guys:
Anyone can help me with some tips to make filter to every attachments
so i
can deny a specific types of files, for instance: *.mp3
I use Followin to Filter Attachments from a special Account and the
second to filter E-Mails wir Win... into mailbox /dev/null
:0 ci
*
^To.*(binaries4michelle(_at_)freenet(_dot_)de|attachments4michelle(_at_)freenet(_dot_)de|files4michelle(_at_)freenet(_dot_)de)
* ^Content-type.*multipart/mixed
* B ?? Content-transfer-encoding.*(x-uuencode|base64)
| /usr/bin/munpack -q -C ~/Maildir/Binaries_files/
:0
* ^Content-type.*multipart/alternative
* > 10000
* < 165000
* B ?? Content-Type.*(.exe|.bat|.com|.pif|.scr)
/dev/null
}
OK, now yo make a combination of the two ones:
:0 ci
* ^To.*(your_login(_at_)your_isp(_dot_)tld)
* ^Content-type.*multipart/mixed
* B ?? Content-Type.*(.mp3)
* B ?? Content-transfer-encoding.*(x-uuencode|base64)
| /usr/bin/munpack -q -C ~/mp3/
Please note, that it does overrride files with the same name.
To avoid this, Write a small BASH-Script which make the Test
and renaming and call /usr/bin/munpack from the BASH-Script.
regards.
mm.
Greetings
Michelle
--
Registered Linux-User #280138 with the Linux Counter, http://counter.li.org/
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail