From 5156c3c2cc6d49cf291f8bec208c52ae736eac1a Mon Sep 17 00:00:00 2001 From: alec Date: Fri, 13 Jun 2008 12:57:52 +0000 Subject: - Added option to display images in messages from known senders (#1484601) git-svn-id: https://svn.roundcube.net/trunk@1525 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/program/include/rcube_message.php | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'roundcubemail/program/include/rcube_message.php') diff --git a/roundcubemail/program/include/rcube_message.php b/roundcubemail/program/include/rcube_message.php index 4d3cb6ca9..d810ef3fa 100644 --- a/roundcubemail/program/include/rcube_message.php +++ b/roundcubemail/program/include/rcube_message.php @@ -86,6 +86,16 @@ class rcube_message return $raw ? $value : $this->imap->decode_header($value); } + /** + * Set is_safe var and session data + * + * @param bool enable/disable + */ + public function set_safe($safe = true) + { + $this->is_safe = $safe; + $_SESSION['safe_messages'][$this->uid] = $this->is_safe; + } /** * Compose a valid URL for getting a message part -- cgit v1.2.3