Re: [exim] Accounting (perl_startup, sql)

Pàgina inicial
Delete this message
Reply to this message
Autor: jesk
Data:  
A: jesk, Exim Users Mailing List
CC: 
Assumpte: Re: [exim] Accounting (perl_startup, sql)


--On Monday, January 10, 2005 13:09:12 +0100 jesk <jesk@???> wrote:

>>> 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.
>
>
> --
>## List details at http://www.exim.org/mailman/listinfo/exim-users Exim
>## details at http://www.exim.org/ ##


someone here who could help?


regards,
christian