Autor: jesk Datum: To: Peter Bowyer, Exim Users Mailing List CC: Betreff: Re: [exim] Accounting (perl_startup, sql)
>> no i dont want parsing the logfiles, i need some specific accounting of >> some routers.
>> is there no way to call a perl subroutine inside a router to increase a
>> counter in a textfile?
>> or to do a "fake-condition" inside a router to update a column with +1 in
>> every run with a sql-statement?
>
> You've just answered your own question - you can easily code a
> condition which calls a $lookup of type [my|pg]sql, and the SQL
> statement performs an UPDATE instead of a SELECT.
>
> You could also use perl, but that would be more expensive.
>
> Peter
ok, i dont know how to modify my routers to do so, because i already have a
condition inside of every router.
where and how to insert a perl subroutine is also a hting i dont know how
to do.