Might have fixed vault store/discard issue
This commit is contained in:
parent
87545d0641
commit
b6a6e0af28
8
vendors/shells/vault.php
vendored
8
vendors/shells/vault.php
vendored
|
|
@ -42,7 +42,7 @@ class VaultShell extends Shell {
|
|||
|
||||
|
||||
/* Loop through the messages and sort them into ones to be processed or discarded */
|
||||
for ($i=30000; $i <= $number_of_messages; $i++) {
|
||||
for ($i=1; $i <= $number_of_messages; $i++) {
|
||||
$this_header = imap_headerinfo($mbox, $i);
|
||||
$message = $this->getMessage($mbox, $i, $this_header);
|
||||
|
||||
|
|
@ -118,7 +118,7 @@ class VaultShell extends Shell {
|
|||
echo "Saved file successfully to database\n";
|
||||
}
|
||||
else {
|
||||
echo "Something went wrong saving the file to the DB\n";
|
||||
echo "Error saving the file to the DB\n";
|
||||
}
|
||||
}
|
||||
//unlink($email_dir.'/'.$attachment['name']); #Delete this attachment now we're done with it.
|
||||
|
|
@ -171,7 +171,7 @@ class VaultShell extends Shell {
|
|||
foreach($stored_msgs as $msg) {
|
||||
$no = imap_msgno($mbox,$msg);
|
||||
|
||||
$this_header = imap_headerinfo($mbox, $i);
|
||||
$this_header = imap_headerinfo($mbox, $no);
|
||||
|
||||
echo "Going to store: $no\t $msg\t".$this_header->subject."\n";
|
||||
if($testing == 0) {
|
||||
|
|
@ -182,7 +182,7 @@ class VaultShell extends Shell {
|
|||
if(isset($discarded_msgs)) {
|
||||
foreach($discarded_msgs as $msg) {
|
||||
$no = imap_msgno($mbox,$msg);
|
||||
$this_header = imap_headerinfo($mbox, $i);
|
||||
$this_header = imap_headerinfo($mbox, $no);
|
||||
echo "Going to discard: $no\t $msg\t".$this_header->subject."\n";
|
||||
if($testing == 0) {
|
||||
imap_mail_move($mbox,$no, 'INBOX/Discarded');
|
||||
|
|
|
|||
Loading…
Reference in a new issue