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

Etusivu
Poista viesti
Vastaa
Lähettäjä: Ian Eiloart
Päiväys:  
Vastaanottaja: Magnus Holmgren, exim-users
Aihe: Re: [exim] Limit of "to" or "cc" by a sender


--On 1 March 2007 18:56:52 +0100 Magnus Holmgren <holmgren@???>
wrote:

> On Thursday 01 March 2007 18:36, Ian Eiloart wrote:
>> --On 1 March 2007 12:30:34 +0000 Philip Hazel <ph10@???>
>> wrote:
>> > On Thu, 1 Mar 2007, 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.
>> >
>> > You will be able to do this in the next release of Exim. The facility
>> > is currently available in the snapshots. Look for "addresses" and
>> > "reduce" in the NewStuff file.
>>
>> So, I could say something like this:
>>
>> ${reduce{${addresses:$h_to:$h_cc:}{0}{${eval:$value+1}}}} to yield the
>> number of addresses revealed in the headers. Neat!
>
> Almost. You need a comma between $h_to: and $h_cc:.


Because I'm catenating a comma separated list. Doh!

--
Ian Eiloart
IT Services, University of Sussex