Re: [exim] Accounting (perl_startup, sql)

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Odhiambo G. Washington
Dátum:  
Címzett: jesk
CC: exim-users
Tárgy: Re: [exim] Accounting (perl_startup, sql)
* jesk <jesk@???> [20050111 13:49]: 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?
>
> noone?


Search the exim-users archives with the keyword "accounting problem" and
read that thread. It may give you enough clues to get you crawling!!


        cheers
       - wash 
+----------------------------------+-----------------------------------------+
Odhiambo Washington                    . WANANCHI ONLINE LTD (Nairobi, KE)  |
wash _at_ wananchi _ dot _ com        . 1ere Etage, Loita Hse, Loita St.,  |
GSM: (+254) 722 743 223            . # 10286, 00100 NAIROBI             |
GSM: (+254) 733 744 121            . (+254) 020 313 985 - 9             |
+---------------------------------+------------------------------------------+
"Oh My God! They killed init! You Bastards!"  
                         --from a /. post