From 133bb07f78b9486f0a524390253f08a0b446c584 Mon Sep 17 00:00:00 2001 From: alecpl Date: Fri, 5 Dec 2008 07:38:54 +0000 Subject: - performance: skip imap connection for attachments actions - created attachments.inc file for attachment upload, remove and display actions --- program/steps/mail/func.inc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'program/steps/mail/func.inc') diff --git a/program/steps/mail/func.inc b/program/steps/mail/func.inc index 33503aec1..93dae6660 100644 --- a/program/steps/mail/func.inc +++ b/program/steps/mail/func.inc @@ -25,7 +25,7 @@ require_once('include/rcube_smtp.inc'); $EMAIL_ADDRESS_PATTERN = '/([a-z0-9][a-z0-9\-\.\+\_]*@[a-z0-9]([a-z0-9\-][.]?)*[a-z0-9]\\.[a-z]{2,5})/i'; // actions that do not require imap connection -$NOIMAP_ACTIONS = array('spell', 'addcontact', 'autocomplete', 'upload'); +$NOIMAP_ACTIONS = array('spell', 'addcontact', 'autocomplete', 'upload', 'display-attachment', 'remove-attachment'); // log in to imap server @@ -40,7 +40,6 @@ if (!in_array($RCMAIL->action, $NOIMAP_ACTIONS) && !$RCMAIL->imap_connect()) { } - // set imap properties and session vars if ($mbox = get_input_value('_mbox', RCUBE_INPUT_GPC)) $IMAP->set_mailbox(($_SESSION['mbox'] = $mbox)); -- cgit v1.2.3