[exim] Router, once per message

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Mike Cardwell
Ημερομηνία:  
Προς: exim-users
Αντικείμενο: [exim] Router, once per message
Hi,

I'd like to run an unseen router once per message. At the moment, to
prevent it running for each recipient, I'm doing this in my predata acl:

warn set acl_m_firstrecipient = ${lc:${sg{$recipients}{,.*}{}}}

And then this in the router:

condition = ${if eq{$acl_m_firstrecipient}{$local_part@$domain}}

Is there a "cleaner" way of doing this?

--
Mike Cardwell https://grepular.com/ https://twitter.com/mickeyc
Professional http://cardwellit.com/ http://linkedin.com/in/mikecardwell
PGP.mit.edu 0018461F/35BC AF1D 3AA2 1F84 3DC3 B0CF 70A5 F512 0018 461F