[imp] adding URLs to notification messages

Chuck Hagenbuch chuck at horde.org
Mon Jan 8 08:42:16 PST 2007


Quoting Liam Hoekenga <liamr at deathstar.org>:

> "Do you know you've got 400 messages in your spam folder?  _Click  
> here_ to empty it now!" The notification system  sanitizes the text  
> you put into it, so instead, we're getting..
>
>    Did you know that you have 75 messages in your trash folder?
>        <a  
> href="/horde/imp/mailbox.php?mailbox=Trash&amp;actionID=empty_mailbox">Click  
> here</a>
>
> Is there any way to embed a URL in the next used by the notification  
> system?   We could fake it, and create a notification-looking pop  
> w/o using notification, but I'd rather not if we don't have to.

Yup, what you need to do is to tell the notification system "no,  
really, trust me":

$notification->push($message, 'horde.warning', array('content.raw'));

-chuck

-- 
"we are plastered to the windshield of the bus that is time." - Chris


More information about the imp mailing list