in reply to Re: Re: Re: Overriding Mail::Audit's accept()
in thread Overriding Mail::Audit's accept()
new(%options) ... Other options include the accept, reject or pipe keys, which specify subroutine references to override the methods with those names.
I saw this in the perldocs, and made a new accept routine via this mechanism, but I could not find a clean way to get at the Mail::Audit object. I couldn't do the equivalent of $item->SUPER::accept... so I would end up having to reimplement accept from scratch, which is not something I am willing to do.
Also, thanks all for the input. I've decided that if and until I find an acceptible mechanism for overriding accept, I will just stick to my current code, where I manually call another subroutine each time before accept (e.g. summarize($item, $folder); $item->accept($folder)).
|
|---|