Restored scandir and array_diffs to get new messages

This commit is contained in:
Karl Cordes 2011-09-05 14:55:45 +10:00
parent 6098ff2ad8
commit 8013f3a685

View file

@ -73,6 +73,10 @@ class VaultShell extends Shell {
$userMap = $this->makeMap($users, 'User', 'email'); $userMap = $this->makeMap($users, 'User', 'email');
$jobMap = $this->makeMap($jobs, 'Job', 'title'); $jobMap = $this->makeMap($jobs, 'Job', 'title');
$emails = scandir($vault_dir);
$processed = scandir($processed_dir);
$new = array_diff($emails, $processed);
/** /**
* Loop through the messages. * Loop through the messages.