| | |
| | | $EMAIL_ADDRESS_PATTERN = '([a-z0-9][a-z0-9\-\.\+\_]*@[a-z0-9][a-z0-9\-\.]*\\.[a-z]{2,5})'; |
| | | |
| | | // actions that do not require imap connection |
| | | $NOIMAP_ACTIONS = array('spell', 'addcontact', 'autocomplete', 'upload', 'display-attachment', 'remove-attachment'); |
| | | $NOIMAP_ACTIONS = array('addcontact', 'autocomplete', 'upload', 'display-attachment', 'remove-attachment'); |
| | | |
| | | // always instantiate imap object (but not yet connect to server) |
| | | $RCMAIL->imap_init(); |
| | |
| | | |
| | | if ($header->depth) |
| | | $a_msg_flags['depth'] = $header->depth; |
| | | else if ($header->has_children) |
| | | $roots[] = $header->uid; |
| | | if ($header->parent_uid) |
| | | $a_msg_flags['parent_uid'] = $header->parent_uid; |
| | | if ($header->has_children) |
| | |
| | | $a_msg_cols, |
| | | $a_msg_flags, |
| | | $insert_top); |
| | | } |
| | | |
| | | if ($IMAP->threading && $a_headers) { |
| | | $OUTPUT->command('init_threads', (array) $roots); |
| | | } |
| | | } |
| | | |
| | |
| | | $end = '>'; |
| | | |
| | | if ($tag == 'link' && preg_match('/^https?:\/\//i', $attrib['href'])) { |
| | | $attrib['href'] = "./bin/modcss.php?u=" . urlencode($attrib['href']) . "&c=" . urlencode($GLOBALS['rcmail_html_container_id']); |
| | | $attrib['href'] = "?_task=utils&_action=modcss&u=" . urlencode($attrib['href']) |
| | | . "&c=" . urlencode($GLOBALS['rcmail_html_container_id']); |
| | | $end = ' />'; |
| | | } |
| | | else if (preg_match('/^mailto:'.$EMAIL_ADDRESS_PATTERN.'(\?[^"\'>]+)?/i', $attrib['href'], $mailto)) { |