[MASOCH-L] CRM114 ou OSBF-Lua?

Julio Covolato julio at psi.com.br
Wed Feb 21 14:59:22 -03 2007


Na última versão do osbf-lua o header "X-OSBF-Lua-Score" não possui mais 
"[--]" e sim "[S]". Uso o seguinte no meu .mailfilter:

-----------------------------------8<--------------------------------
import SENDER
import RECIPIENT
import EXTENSION
#LOGDIR="/var/log"
#logfile "$LOGDIR/maildrop.log"
maildirmake=/usr/local/bin/maildirmake
MAILDIR=$DEFAULT
# Config da pasta Spam
JUNK_FOLDER=.Spam
_JUNK_DEST=$MAILDIR/$JUNK_FOLDER/
# Config para OSBF-LUA
OSBF_LUA_DIR=/usr/local/osbf-lua
OSBF_LUA_USER_DIR=$HOME/osbf-lua
#######################################################
# Criação automática da pasta .Spam
`test -d $_JUNK_DEST`
if ($RETURNCODE != 0 )
{
        `$maildirmake $_JUNK_DEST`
# auto subscribe da pasta .Spam (funciona com o courier imap)
        `echo INBOX$JUNK_FOLDER >> $MAILDIR/courierimapsubscribed`
}
# Raramente spam é mair do que 350 kb:
if ( $SIZE < 350000 )
{
   exception {
   xfilter "$OSBF_LUA_DIR/spamfilter.lua --udir $OSBF_LUA_USER_DIR"
   }
}
if ( /^X-OSBF-Lua-Score:.*\[[S]\] /:h )
{
        exception {
                to "$_JUNK_DEST"
        }
}
-----------------------------------------------8<------------------------------------------

Abraços,
-----------------------------
    _    Julio Cesar Covolato
   0v0   <julio at psi.com.br>
  /(_)\  F: 55-11-3129-3366
   ^ ^   PSI INTERNET
-----------------------------



Filipe Alvarez wrote:
> Obrigado, vou testar!
>
> Em 09/02/07, Cassiano Aquino <caquino at ebrain.com.br> escreveu:
>   
>> Ola Felipe,
>>
>> Basicamente voce poderia usar algo assim:
>>
>> SHELL="/bin/sh"
>> import MAILDIRQUOTA
>> import HOME
>> import EXT
>> import HOST
>> import USER
>> OSBF_LUA_DIR=/usr/share/osbf-lua
>> OSBF_LUA_USER_DIR="${HOME}osbf-lua"
>>
>> exception {
>>                 xfilter "$OSBF_LUA_DIR/spamfilter.lua --gdir
>> $OSBF_LUA_DIR/ --udir $OSBF_LUA_USER_DIR/"
>> }
>>
>> if ( /^X-OSBF-Lua-Score:.*\[[--]\] /:h )
>> {
>>         exception {
>>                 to "Maildir/.SPAM.E Spam/"
>>         }
>> }
>>
>>     
> __
> masoch-l list
> https://eng.registro.br/mailman/listinfo/masoch-l
>   



More information about the masoch-l mailing list