Re: [exim] Counting how many addresses a redirect router gen…

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Jeremy Harris
Dátum:  
Címzett: exim-users
Tárgy: Re: [exim] Counting how many addresses a redirect router generates?
On 02/11/16 16:42, Chris Siebenmann wrote:
> We have a mail system facility where we allow users to place files in
> a special 'lists' directory


> We have recently wound up wanting to be able to tell the difference
> between the two sorts of 'mailing lists', so we can treat email passing
> through them somewhat differently. So, is there any good way to do
> something like count the number of addresses generated from a redirect
> expansion? Alternately, can people think of clever other ways to do this?


You didn't say what format the files are.

Read the file, feed it to ${listcount } (recent Exim; mind the choice
of list-sep)
or just look for a separator with ${sg }

--
Cheers,
Jeremy