diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-06-14 17:35:26 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-06-14 17:35:26 +0000 |
| commit | ca79c5b5a03381c939985b5920e0ea036e32a3d8 (patch) | |
| tree | 9e07482c0ae548c0c0379754e7eef83fbab62df5 /roundcubemail/program/include | |
| parent | 60c6827ef5cdf620caccc6b478b8e573c71aa308 (diff) | |
Complete implementation of #1484601: add link for saving sender to address book and reload message
git-svn-id: https://svn.roundcube.net/trunk@1534 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include')
| -rw-r--r-- | roundcubemail/program/include/rcube_message.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/roundcubemail/program/include/rcube_message.php b/roundcubemail/program/include/rcube_message.php index d810ef3fa..6654c3f90 100644 --- a/roundcubemail/program/include/rcube_message.php +++ b/roundcubemail/program/include/rcube_message.php @@ -42,6 +42,7 @@ class rcube_message public $mime_parts = array(); public $attachments = array(); public $subject = ''; + public $sender = null; public $is_safe = false; @@ -53,9 +54,10 @@ class rcube_message $this->uid = $uid; $this->headers = $this->imap->get_headers($uid); $this->subject = rcube_imap::decode_mime_string($this->headers->subject, $this->headers->charset); + list(, $this->sender) = each($this->imap->decode_address_list($this->headers->from)); - $this->is_safe = (intval($_GET['_safe']) || $_SESSION['safe_messages'][$uid]) ? true : false; - $_SESSION['safe_messages'][$uid] = $this->is_safe; + $this->set_safe((intval($_GET['_safe']) || $_SESSION['safe_messages'][$uid])); + $this->set_safe(0); $this->opt = array( 'safe' => $this->is_safe, |
