Re: [exim] Count all (incl. non local) recipients?

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Evgeniy Berdnikov
Dátum:  
Címzett: exim-users
Tárgy: Re: [exim] Count all (incl. non local) recipients?
On Wed, Jul 14, 2021 at 02:35:54AM +0000, MRob via Exim-users wrote:
> Hi, I was trying and find like $rcpt_count or $recipients_count for full
> count of addresses in TO/CC for incoming message.


What do you want to do with it?

> I am wonder how we can look at TO:/CC: header which has many recipients but
> most are not for local domains? To get overall count of addresses/recipients
> at all domains in the TO: and CC: fields? Sorry if this is FAQ I tried to
> search mailing list


Just get header and count number of commas. Ideally, you should strip out
comments, because they could contain commas.
Look docs for string expansions:
https://www.exim.org/exim-html-current/doc/html/spec_html/ch-string_expansions.html
--
Eugene Berdnikov