extracting forwarded messages Re: Site Configuration Queries
Javier Castillo Alcibar
javier.castillo at euroview-spain.com
Mon May 19 16:44:46 CEST 2003
Hi Simon,
I wrote this script for non-spam messages. It plays with "reformime". To
manage spam messages, it's trivial to change it:
javier at linux-list:~$ cat /usr/local/sbin/filtrar-reformime-non-spam.sh
#!/bin/sh
#
#
FICHTMP=/tmp/prueba.$$
FiltrarAdjuntos()
{
read seccion
while [ -n "$seccion" ]
do
/usr/bin/reformime -r -e -s $seccion < $FICHTMP |
/usr/local/bin/bogofilter -v -d /home/spamfilter/.bogofilter -l -n 2>
/dev/null
read seccion
done
}
cat > $FICHTMP
cat $FICHTMP | /usr/bin/reformime -s | grep "1\." | grep -v "\.1" |
FiltrarAdjuntos
rm $FICHTMP
exit 0
Un saludo.
Javier.
-----Mensaje original-----
De: David Relson [mailto:relson at osagesoftware.com]
Enviado el: lunes, 19 de mayo de 2003 16:41
Para: Simon Huggins; bogofilter
Asunto: extracting forwarded messages Re: Site Configuration Queries
At 10:34 AM 5/19/03, Simon Huggins wrote:
>Not sure if grabmessages is a _good_ name but the script already had
>comments etc before.
>
>I've attached it here.
Simon,
Got it. What about extract.rfc822 or mime.get.rfc822 or
extract.forwarded.messages or ... ?
More information about the Bogofilter
mailing list