Re: [exim] RFC 5532 enforcement

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Jeremy Harris
Data:  
Para: exim-users
Asunto: Re: [exim] RFC 5532 enforcement
On 10/13/10 16:13, Todd Lyons wrote:
> To enforce this within exim, I have a simple ACL and perl function
> that will count whatever headers you ask it to.


Would this work?

condition= ${if match {$message_headers} {\N(?ms).*^From: .*^From: \N}}

Less flexible, I admit; you don't get an actual count. Let's get
into real Exim-abuse:

set acl_m_h_name = From
set acl_m_h_count = ${reduce {<\n $message_headers} \
                                                  {0} \
                                                  {${eval:$value+${if match{$item}{^$acl_m_h_name: } {1}{0}}}}}


Look ma! No Perl!
Caveat emptor: I've not actually tried these.

- Jeremy