From 53cd0aac603cd45567d2f00137b837ada1e4b1a2 Mon Sep 17 00:00:00 2001 From: Karl Cordes Date: Thu, 6 Aug 2009 15:24:14 +1000 Subject: [PATCH] Fixed long standing bugs in the vault.. --- vendors/shells/vault.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/vendors/shells/vault.php b/vendors/shells/vault.php index b67eded5..d1bbb5ee 100644 --- a/vendors/shells/vault.php +++ b/vendors/shells/vault.php @@ -13,16 +13,16 @@ 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 /* Setup Connection to the IMAP server */ $username = 'vault'; $password = 'xjdYOsmJWc37'; /* The password for the account to be checked */ $email_dir = '/var/www/cakephp/app/emails/working'; $temp_filename = 'temp.eml'; - // if($testing == 1) { + if($testing == 1) { $email_dir = '/var/www/quotenik1.2/app/emails/working'; - // } + } $mbox = imap_open("{saturn:143/novalidate-cert}INBOX", $username, $password) or die("can't connect: " . imap_last_error()); $MC = imap_check($mbox); @@ -160,7 +160,7 @@ class VaultShell extends Shell { $this_header = imap_headerinfo($mbox, $i); - echo "Going to store: $no\t $msg\t."$this_header->subject."\n"; + echo "Going to store: $no\t $msg\t".$this_header->subject."\n"; if($testing == 0) { imap_mail_move($mbox, $no, 'INBOX/Stored'); } @@ -170,7 +170,7 @@ class VaultShell extends Shell { foreach($discarded_msgs as $msg) { $no = imap_msgno($mbox,$msg); - echo "Going to discard: $no\t $msg\t."$this_header->subject."\n"; + echo "Going to discard: $no\t $msg\t".$this_header->subject."\n"; if($testing == 0) { imap_mail_move($mbox,$no, 'INBOX/Discarded'); }