Changed testing flag on vault

This commit is contained in:
Karl Cordes 2011-03-16 12:02:50 +11:00
parent d53f29a15e
commit d790121520

View file

@ -27,7 +27,7 @@ class VaultShell extends Shell {
/******************************************************
* Config Variables
* *****************************************************/
$testing = 1; //Whether to actually move the emails. 1=test, 0=production
$testing = 0; //Whether to actually move the emails. 1=test, 0=production
if($testing == 1) {
@ -97,9 +97,9 @@ class VaultShell extends Shell {
}
if(file_exists($processed_dir."/".$email_filename)) {
/*if(file_exists($processed_dir."/".$email_filename)) {
continue;
}
}*/
$content = file_get_contents($vault_dir."/".$email_filename);
@ -114,13 +114,8 @@ class VaultShell extends Shell {
}
//Handle files coming from windows (\r\n vs \n):
// Thanks to Dan Hulme (dhulme@gmail.com)
$content = str_replace("\r", "", $content);
// Keep a copy of the original file
//$raw=$content;
$headers = imap_rfc822_parse_headers($content);