Graeme Fowler escribió: > On 18/01/2007 16:10, Manuel Molina Cuberos wrote: > >> # Exim filter <<== do not edit or remove this line! >> if $header_subject contains "badsubject" then >> logwrite "$tod_log filtering a mail to the spam folder" >> save Maildir/.F1165853268 >> else >> logwrite "$tod_log email not filtered" >> endif >> >> I put logwrite data to show that the condition was met. If I delete the >> "save" line, then the email wasn't delivered, but with the line, the >> email is delivered to the standard location specified in our configuration: >> > > http://www.exim.org/exim-html-4.66/doc/html/filter.html#SECTsave > > Add a / to the end of the directory name, then it will be processed as a > directory. Without that, it's processed as a file. If the name given is > a file and not a directory, and the save path ends in a /, then an error > will result. > > Graeme > > Thaks! I appended a / to the directory name, but the point is that even after that, the result in the log for a message processed by the filter is:
2007-01-18 17:19:02 1H7ZyA-0007G1-Dt <= [EMAIL PROTECTED] H=(ya.com) [172.30.8.10] P=smtp S=1470 [EMAIL PROTECTED] 2007-01-18 17:19:02 1H7ZyA-0007G1-Dt => /opt/data/mail/mailstorage02/38/1b5/380/b68bda85/[EMAIL PROTECTED]/Maildir/ <[EMAIL PROTECTED]> R=filters T=local_delivery 2007-01-18 17:19:02 1H7ZyA-0007G1-Dt Completed ... where the delivery should have take place in /opt/data/mail/mailstorage02/38/1b5/380/b68bda85/[EMAIL PROTECTED]//Maildir/.F1165853268/ Any ideas ? Regards, -- Manuel Molina Cuberos Administrador de Sistemas Área Técnica T-Online Telecommunications Spain, S.A.U Grupo Deutsche Telekom Edificio Gorbea 4 Avda. Bruselas, 20 3ª planta 28108 Alcobendas -- Madrid Telf: +34 911 41 7931 Fax +34 911 41 7700 Este mensaje puede contener información confidencial dirigida únicamente a su destinatario. Si usted no es el destinatario de este mensaje, según consta en el mismo, por favor destruya el mensaje y advierta al remitente del error respondiendo a este mensaje por correo electrónico. No está autorizada la copia o entrega de este mensaje a quienes no son destinatarios del mismo. -- ## List details at http://www.exim.org/mailman/listinfo/exim-users ## Exim details at http://www.exim.org/ ## Please use the Wiki with this list - http://www.exim.org/eximwiki/
