Fixed loop and message numbers
This commit is contained in:
parent
65489b8684
commit
9c061d50d0
10
vendors/shells/vault.php
vendored
10
vendors/shells/vault.php
vendored
|
|
@ -110,7 +110,7 @@ class VaultShell extends Shell {
|
||||||
($attachment['type'] != 'multipart/alternative') &&
|
($attachment['type'] != 'multipart/alternative') &&
|
||||||
($attachment['type'] != 'multipart/report')
|
($attachment['type'] != 'multipart/report')
|
||||||
|
|
||||||
) {
|
) {
|
||||||
$this->EmailAttachment->create();
|
$this->EmailAttachment->create();
|
||||||
$this->data['EmailAttachment']['email_id'] = $email_id;
|
$this->data['EmailAttachment']['email_id'] = $email_id;
|
||||||
$this->data['EmailAttachment']['name'] = $attachment['name'];
|
$this->data['EmailAttachment']['name'] = $attachment['name'];
|
||||||
|
|
@ -133,7 +133,7 @@ class VaultShell extends Shell {
|
||||||
//$stored_msgs[] = imap_uid($mbox,$i);
|
//$stored_msgs[] = imap_uid($mbox,$i);
|
||||||
|
|
||||||
if($testing == 0) {
|
if($testing == 0) {
|
||||||
imap_mail_move($mbox, $no, 'INBOX/Stored');
|
imap_mail_move($mbox, $i, 'INBOX/Stored');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -152,10 +152,10 @@ class VaultShell extends Shell {
|
||||||
* I may change this to simply delete the emails. This will do for now, but it's doubling up on the storage for useless files.
|
* I may change this to simply delete the emails. This will do for now, but it's doubling up on the storage for useless files.
|
||||||
* */
|
* */
|
||||||
|
|
||||||
if($testing == 0 ) {
|
if($testing == 0 ) {
|
||||||
|
|
||||||
imap_mail_move($mbox, $no, 'INBOX/Discard');
|
imap_mail_move($mbox, $i, 'INBOX/Discard');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue