Re: [exim] Blank emails

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Chris Meadors
Datum:  
To: exim-users
Betreff: Re: [exim] Blank emails
On Mon, 2006-06-19 at 07:51 -0700, Marc Perkel wrote:
> Here's what I use in a filter.
>
> # Get rid of very empty messages
>
> if "h_to:" is ""
> then
>    if "h_subject" is ""
>    then
>       seen finish
>    endif
> endif


If you are going to check for missing headers to catch empty messages,
go for the two that all RFC compliant messages MUST have: Date: and
From:

I have this in my configuration:


# Check to see that the RFC 2822 required headers are present.

  deny    message     = message is missing headers required by RFC 2822
          condition   = ${if or{{!def:h_Date:}{!def:h_From:}}}



--
Chris