Working on revised vault. Trying to cut down on the number of queries for checking an Enquiry number

This commit is contained in:
Karl Cordes 2010-05-06 10:10:24 +10:00
parent 260c817eee
commit 6889ae3739

View file

@ -41,6 +41,8 @@ class VaultShell extends Shell {
}
/* Loop through the messages and sort them into ones to be processed or discarded */
for ($i=1; $i <= $number_of_messages; $i++) {
$this_header = imap_headerinfo($mbox, $i);
@ -48,6 +50,8 @@ class VaultShell extends Shell {
//echo "Checking msg number: $i \tSubject: ".$message['subject']."\n";
$enquiry = $this->checkIfValidEnquiry($message['subject'], $testing);
if($enquiry) {
//echo "Found Enquiry number: ".$enquiry['Enquiry']['title']." Processing.\n";
//Process it and store the message and its attachments.