Changing Firstpass to do 500

This commit is contained in:
Karl Cordes 2010-05-14 08:55:07 +10:00
parent aa6895af44
commit feff586f65
2 changed files with 9 additions and 5 deletions

View file

@ -48,7 +48,11 @@ class EnquiriesController extends AppController {
$this->set('invoices', $this->Enquiry->Invoice->find('all', array('conditions' => array('Invoice.enquiry_id' => $id))));
//$this->set('files', $this->Enquiry->EnquiryFile->find('all', array('conditions' => array('EnquiryFile.enquiry_id'=>$id), 'order' => 'EnquiryFile.created ASC')));
//$this->set('files', $this->Enquiry->EnquiryFile->find('all', array('conditions' => array('EnquiryFile.enquiry_id'=>$id), 'order' => 'EnquiryFile.created ASC')));
/* Trying to optimise the queries for this part of the view - it's currently getting bogged down checking Email Attachments.
* Going to create an array describing whether a particular email ID has an attachment. Trying to avoid checking binary data in a find('all') call

View file

@ -72,8 +72,8 @@ class FirstpassShell extends Shell {
if($enqID == false) {
echo "Deleting msg number: $i\tSubject: ".$message['subject']."\n";
imap_delete($mbox, $i);
//$discardArray[] = $i;
//imap_delete($mbox, $i);
$discardArray[] = $i;
}
@ -84,7 +84,7 @@ class FirstpassShell extends Shell {
reset($discardArray);
/*
$numberToDiscard= count($discardArray);
@ -107,7 +107,7 @@ class FirstpassShell extends Shell {
}
}
*/