Re: [exim] Limit of "to" or "cc" by a sender

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Matthew Newton
Datum:  
To: Ian Eiloart
CC: exim-users
Betreff: Re: [exim] Limit of "to" or "cc" by a sender
Hi,

On Fri, Feb 09, 2007 at 11:42:20AM +0000, Ian Eiloart wrote:
> What I'm trying to do, if I can get the syntax right, is replace long
> headers To: and Cc: headers (say, more than 1024 chars) with a comment like
> "long list hidden by postmaster:;". I don't see a way of actually counting
> the number of addresses, which I'd slightly prefer.


Completely untested, but how about:

headers_remove = "To"
headers_add = To: \
              ${if >{${strlen:${sg{$header_to:}{[^,]}{}}}}{50}\
                {Long list hidden by postmaster:;}{$header_to:}\
              }


(Basically, count the number of commas in the header.)

Matthew


--
Matthew Newton <mcn4@???>

UNIX and e-mail Systems Administrator, Network Services,
I.T. Services, University of Leicester, Leicester LE1 7RH, United Kingdom

For IT help contact helpdesk extn. 2253, <cchelp@???>