--On 1 March 2007 18:56:52 +0100 Magnus Holmgren <[EMAIL PROTECTED]> 
wrote:

> On Thursday 01 March 2007 18:36, Ian Eiloart wrote:
>> --On 1 March 2007 12:30:34 +0000 Philip Hazel <[EMAIL PROTECTED]>
>> 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

-- 
## 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/

Reply via email to