| | |
| | | | program/steps/mail/compose.inc | |
| | | | | |
| | | | This file is part of the RoundCube Webmail client | |
| | | | Copyright (C) 2005, RoundCube Dev. - Switzerland | |
| | | | Copyright (C) 2005-2007, RoundCube Dev. - Switzerland | |
| | | | Licensed under the GNU GPL | |
| | | | | |
| | | | PURPOSE: | |
| | |
| | | |
| | | |
| | | // remove an attachment |
| | | if ($_action=='remove-attachment' && preg_match('/^rcmfile([0-9]+)$/', $_GET['_file'], $regs)) |
| | | if ($_action=='remove-attachment' && preg_match('/^rcmfile([0-9]+)$/', $_POST['_file'], $regs)) |
| | | { |
| | | $id = $regs[1]; |
| | | if (is_array($_SESSION['compose']['attachments'][$id])) |
| | |
| | | { |
| | | $_SESSION['compose']['reply_uid'] = $msg_uid; |
| | | $_SESSION['compose']['reply_msgid'] = $MESSAGE['headers']->messageID; |
| | | $_SESSION['compose']['references'] = $MESSAGE['headers']->reference; |
| | | $_SESSION['compose']['references'] .= !empty($MESSAGE['headers']->reference) ? ' ' : ''; |
| | | $_SESSION['compose']['references'] .= $MESSAGE['headers']->messageID; |
| | | $_SESSION['compose']['references'] = trim($MESSAGE['headers']->references . " " . $MESSAGE['headers']->messageID); |
| | | |
| | | if (!empty($_GET['_all'])) |
| | | $MESSAGE['reply_all'] = 1; |
| | |
| | | $header = 'bcc'; |
| | | } |
| | | |
| | | $allow_attrib = array('id', 'class', 'style', 'cols', 'rows', 'wrap', 'tabindex'); |
| | | $allow_attrib = array('id', 'class', 'style', 'cols', 'rows', 'tabindex'); |
| | | $field_type = 'textarea'; |
| | | break; |
| | | |