Fixed safe_mode issue and visual bug
| | |
| | | | 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> | |
| | |
| | | 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; |
| | |
| | | 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"); |
| | | } |
| | | |
| | | |