/** * Retrieve bounce decoder * * @return Mzax_Bounce_Detector */ public static function getBounceDecoder() { static $bounceDecoder; if (!$bounceDecoder) { $bounceDecoder = new Mzax_Bounce_Detector(); $bounceDecoder->addDetector(Mage::getModel('mzax_emarketing/inbox_bounce_detector_unsubscribe'), 0); $bounceDecoder->addDetector(Mage::getModel('mzax_emarketing/inbox_bounce_detector_recipient'), 1); $bounceDecoder->addDetector(Mage::getModel('mzax_emarketing/inbox_bounce_detector_store'), 2); } return $bounceDecoder; }