summaryrefslogtreecommitdiff
path: root/program/include
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2008-06-13 12:57:52 +0000
committeralecpl <alec@alec.pl>2008-06-13 12:57:52 +0000
commit712b30dd2de49763f68ee6c8f7b8b24bdadb19d9 (patch)
treed0a23d11f386324ca160fa787988d1136912bee3 /program/include
parent991e15c3aed6f065ad49159fea3c91e47677fbd8 (diff)
- Added option to display images in messages from known senders (#1484601)
Diffstat (limited to 'program/include')
-rw-r--r--program/include/rcube_message.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/program/include/rcube_message.php b/program/include/rcube_message.php
index 4d3cb6ca9..d810ef3fa 100644
--- a/program/include/rcube_message.php
+++ b/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