ftimme
2011-10-11 81d79a79e4b29e9314b64b2e4c49b48ae8319767
server/plugins-available/maildeliver_plugin.inc.php
@@ -112,7 +112,13 @@
            
         // Move junk
         $tpl->setVar('move_junk',$data["new"]["move_junk"]);
         // Set autoresponder start date
         $tpl->setVar('start_date',$data["new"]["autoresponder_start_date"]);
         // Set autoresponder end date
         $tpl->setVar('end_date',$data["new"]["autoresponder_end_date"]);
         // Autoresponder
         $tpl->setVar('autoresponder',$data["new"]["autoresponder"]);
         
@@ -123,8 +129,8 @@
         $sql = "SELECT * FROM mail_forwarding WHERE type = 'alias' AND destination = '".$app->db->quote($data["new"]["email"])."'";
         $records = $app->db->queryAllRecords($sql);
         $addresses = '';
         if(is_array($records)) {
            $addresses .= ':addresses [';
         if(is_array($records) && count($records) > 0) {
            $addresses .= ':addresses ["'.$data["new"]["email"].'",';
            foreach($records as $rec) {
               $addresses .= '"'.$rec['source'].'",';
            }