diff --git a/imp/lib/Ajax/Application/Handler/ImageUnblock.php b/imp/lib/Ajax/Application/Handler/ImageUnblock.php index e5ba3d9d7d7..c67b160dd64 100644 --- a/imp/lib/Ajax/Application/Handler/ImageUnblock.php +++ b/imp/lib/Ajax/Application/Handler/ImageUnblock.php @@ -33,9 +33,15 @@ public function imageUnblockAdd() { global $injector, $notification; - $address = $injector->getInstance('IMP_Factory_Contents')->create(new IMP_Indices_Mailbox($this->vars))->getHeader()->getOb('from')->bare_addresses[0]; + $indices = new IMP_Indices_Mailbox($this->vars); + $address = $injector->getInstance('IMP_Factory_Contents') + ->create($indices) + ->getHeader() + ->getOb('from') + ->bare_addresses[0]; if ($injector->getInstance('IMP_Prefs_Special_ImageReplacement')->addSafeAddrList($address)) { + $this->_base->queue->message($indices); $notification->push(sprintf(_("Always showing images in messages sent by %s."), $address), 'horde.success'); }