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

Pàgina inicial
Delete this message
Reply to this message
Autor: Magnus Holmgren
Data:  
A: exim-users
Assumpte: Re: [exim] Limit of "to" or "cc" by a sender
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:.

-- 
Magnus Holmgren        holmgren@???
                       (No Cc of list mail needed, thanks)


"Exim is better at being younger, whereas sendmail is better for
Scrabble (50 point bonus for clearing your rack)" -- Dave Evans