[horde] log when email is deleted
Ralf Lang
lang at b1-systems.de
Fri Feb 16 09:06:29 UTC 2018
Am 15.02.2018 um 23:06 schrieb Jan Schneider:
>
> Zitat von Mike Poznecki <poz_sa at yahoo.com>:
>
>> Hi, I would like to write to the log every time someone deletes an
>> email. Where is the best place in code to write out to the log using
>> Horde::log? I was looking in Socket.php but I"m not sure if that is
>> where to put it. (or what function to put it in.) Thanks.
>
> Horde_Imap_Client_Socket might indeed be a good place because it's used
> for all IMAP communication across Horde. So you are sure to catch all
> kind of deletions. That would be in the _deleteMsgs() method then.
>
I think,
In this library location, probably the Horde::log shortcut would be
wrong and using an (injected) Logger interface would be neeeded.
--
Ralf Lang
Linux Consultant / Developer
Tel.: +49-170-6381563
Mail: lang at b1-systems.de
B1 Systems GmbH
Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de
GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537
More information about the horde
mailing list