buenos días para toda la lista, tengo una serie de dudas y no veo como
resolverlas, necesito crear un filtro de mail, he intentado con scripts
de bash y no meda, he intentado con un script en php pero se me ha
dificultado mesclarlo con qmail, con bash ejecuto la siguiente guuion
que pienso deberia funciona y no funciona
#!/bin/bash
// Cargo el contenido del mensaje me funciona bien
CONTENT=`(cat)`
// Hago una busqueda de una cadena en los diferentes encabezados del
mensaje y no me devuelve nada
VAR=$(echo $CONTENT | grep -x '^Received-SPF: pass')
// Escrivo el contenido de la variable VAR en un archivo
echo $VAR >> archivo.log
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
good morning for all the list, I have a series of doubts and I do not
see like solving them, I need to create a mail filter, have tried with
scripts of bash and not meda, I have tried with script in php but one
has become difficult to me to mesclar it with qmail, with bash I execute
following guuion that I think deberia works and it does not work
#!/bin/bash
//Position the content of the message works
CONTENT=`(cat)`
//I make a headed search of a chain in the different ones from the
message and well to me
VAR=$(echo $CONTENT | grep -x '^Received-SPF: pass')
//Escrivo the content of variable VAR in a file
echo $VAR >> archivo.log
---------------------------------------------------------------------
QmailToaster hosted by: VR Hosted <http://www.vr.org>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]