Author: leithoff
New Revision: 55500
URL: http://svn.stylite.de/viewvc/egroupware?rev=55500&view=rev
Log:
add some possible filteroptions; not used yet. but e.g. LARGER/SMALLER could be quite useful, and some possible extending of our quicksearch
Modified:
trunk/emailadmin/inc/class.emailadmin_imapbase.inc.php
— trunk/emailadmin/inc/class.emailadmin_imapbase.inc.php (original)
+++ trunk/emailadmin/inc/class.emailadmin_imapbase.inc.php Thu Mar 24 10:45:50 2016
@@ -2011,6 +2011,7 @@
$criteria = strtoupper($_criterias[‘type’]);
switch ($criteria) {
case ‘QUICK’:
@@ -2028,7 +2029,21 @@
{
$imapSearchFilter->andSearch($imapFilter2);
}
-
if ($_supportsOrInQuery && $criteria=='QUICKWITHCC')
-
{
-
$imapFilter3 = new Horde_Imap_Client_Search_Query();
-
$imapFilter3->charset('UTF-8');
-
$imapFilter3->headerText('CC', $_criterias['string'], $not=false);
-
$imapSearchFilter->orSearch($imapFilter3);
-
}
$queryValid = true;
-
break;
-
case 'LARGER':
-
case 'SMALLER':
-
$imapSearchFilter->size( $_criterias['string'], ($criteria=='LARGER'?true:false), $not=false);
-
//$imapSearchFilter->charset('UTF-8');
-
$queryValid = true;
-
break;
break;
case 'FROM':
case 'TO':
@@ -4455,7 +4470,7 @@
*/
function getBodyPart($_uid, $_partID=null, $_folder=null, $_preserveSeen=false, $_stream=false, &$_encoding=null, $_tryDecodingServerside=true)
{
-
if (self::$debug) error_log( __METHOD__."(".array2string($_uid).", $_partID, $_folder, $_preserveSeen)");
-
if (self::$debug) error_log( __METHOD__.__LINE__."(".array2string($_uid).", $_partID, $_folder, $_preserveSeen, $_stream, $_encoding, $_tryDecodingServerside)");
if (empty($_folder))
{
@@ -5622,11 +5637,11 @@
if ($part && ($partDisposition==‘attachment’ || $partDisposition==‘inline’ || ($part->getPrimaryType() == ‘text’ && $part->getSubType() == ‘calendar’)))
{
//$headerObject=$part->getAllDispositionParameters();//not used anywhere around here
$structure_bytes = $part->getBytes();
$structure_mime=$part->getType();
$structure_partID=$part->getMimeId();
$filename=$part->getName();
-
//error_log(__METHOD__.__LINE__." fetchPartContents(".array2string($_uid).", $structure_partID, $_stream, $_preserveSeen,$structure_mime)" );
$this->fetchPartContents($_uid, $part, $_stream, $_preserveSeen=true,$structure_mime);
if ($_returnPart) return $part;
}
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785351&iu=/4140
eGroupWare-cvs mailing list
eGroupWare-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-cvs