Changing Firstpass to do 500

This commit is contained in:
Karl Cordes 2010-05-14 08:37:05 +10:00
parent 7596f0dad7
commit aa6895af44
2 changed files with 17 additions and 2 deletions

View file

@ -22,9 +22,24 @@ class JobsController extends AppController {
if (!empty($this->data)) {
$this->Job->create();
$job_offset = 6130;
$number_of_jobs = $this->Job->findCount();
$new_job_number = $job_offset + $number_of_jobs;
$enquiry = $this->Job->Enquiry->findById($this->data['Job']['enquiry_id']);
// $this->data['Job']['title'] =
if ($this->Job->save($this->data)) {
$jobid = $this->Job->id;
$this->Session->setFlash(__('Job Saved', true));
$this->redirect(array('action'=>'view', $jobid));
} else {

View file

@ -60,8 +60,8 @@ class FirstpassShell extends Shell {
for($i=1; $i <= $number_of_messages; $i++) {
// for($i=1; $i <= 500; $i++) {
// for($i=1; $i <= $number_of_messages; $i++) {
for($i=1; $i <= 500; $i++) {
$this_header = imap_headerinfo($mbox, $i);
$message = $this->getMessage($mbox, $i, $this_header);