diff options
| author | roundcube <roundcube@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2005-11-01 22:18:05 +0000 |
|---|---|---|
| committer | roundcube <roundcube@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2005-11-01 22:18:05 +0000 |
| commit | 031e03812e6924ee21e0e1af57122fdef3d0772e (patch) | |
| tree | df04359c4a5f90e8a7c6e4657a951a68c600790e /roundcubemail/program | |
| parent | e81e1e6ba3f155303544a172819485ce96e65f05 (diff) | |
Fixed safe_mode issue and visual bug
git-svn-id: https://svn.roundcube.net/trunk@72 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program')
| -rw-r--r-- | roundcubemail/program/js/app.js | 9 | ||||
| -rw-r--r-- | roundcubemail/program/steps/mail/sendmail.inc | 6 |
2 files changed, 9 insertions, 6 deletions
diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js index 8cc385895..a61cc1e73 100644 --- a/roundcubemail/program/js/app.js +++ b/roundcubemail/program/js/app.js @@ -6,7 +6,7 @@ | Copyright (C) 2005, RoundCube Dev, - Switzerland | | Licensed under the GNU GPL | | | - | Modified: 2005/10/26 (roundcube) | + | Modified: 2005/11/01 (roundcube) | | | +-----------------------------------------------------------------------+ | Author: Thomas Bruederli <roundcube@gmail.com> | @@ -1203,16 +1203,15 @@ function rcube_webmail() if (this.message_rows[uid].classname.indexOf('unread')<0 && this.message_rows[uid].unread) { this.message_rows[uid].classname += ' unread'; - if (!this.in_selection(uid)) - this.message_rows[uid].obj.className += ' unread'; + this.set_classname(this.message_rows[uid].obj, 'unread', true); + if (this.env.unreadicon) icn_src = this.env.unreadicon; } else if (!this.message_rows[uid].unread) { this.message_rows[uid].classname = this.message_rows[uid].classname.replace(/\s*unread/, ''); - if (!this.in_selection(uid)) - this.message_rows[uid].obj.className = this.message_rows[uid].obj.className.replace(/\s*unread/, ''); + this.set_classname(this.message_rows[uid].obj, 'unread', false); if (this.message_rows[uid].replied && this.env.repliedicon) icn_src = this.env.repliedicon; diff --git a/roundcubemail/program/steps/mail/sendmail.inc b/roundcubemail/program/steps/mail/sendmail.inc index ddd08f11e..fbb31b3d8 100644 --- a/roundcubemail/program/steps/mail/sendmail.inc +++ b/roundcubemail/program/steps/mail/sendmail.inc @@ -194,7 +194,11 @@ else unset($headers_php['To'], $headers_php['Subject']); $header_str = $MAIL_MIME->txtHeaders($headers_php); - $sent = mail($mailto, $msg_subject, $msg_body, $header_str, "-f$from"); + + if(ini_get('safe_mode')) + $sent = mail($mailto, $msg_subject, $msg_body, $header_str); + else + $sent = mail($mailto, $msg_subject, $msg_body, $header_str, "-f$from"); } |
