Working on revised vault. Trying to cut down on the number of queries for checking an Enquiry number
This commit is contained in:
parent
260c817eee
commit
6889ae3739
4
vendors/shells/vault.php
vendored
4
vendors/shells/vault.php
vendored
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue