diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-06-13 12:57:52 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-06-13 12:57:52 +0000 |
| commit | 5156c3c2cc6d49cf291f8bec208c52ae736eac1a (patch) | |
| tree | 0d32f7e0c289f816cf563dad2fada47e6ebb1cb7 /roundcubemail/program/include/rcube_message.php | |
| parent | 7c13933277de668a9ca0b11009ce16f566d84a8f (diff) | |
- 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
Diffstat (limited to 'roundcubemail/program/include/rcube_message.php')
| -rw-r--r-- | roundcubemail/program/include/rcube_message.php | 10 |
1 files changed, 10 insertions, 0 deletions
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 |
