NotifySend.php
authorAlan Knowles <alan@akbkhome.com>
Fri, 2 Dec 2011 07:22:24 +0000 (15:22 +0800)
committerAlan Knowles <alan@akbkhome.com>
Fri, 2 Dec 2011 07:22:24 +0000 (15:22 +0800)
NotifySend.php

index 4c32e85..c8906d4 100644 (file)
@@ -146,8 +146,7 @@ class Pman_Core_NotifySend extends Pman
                      "Notification event cleared (not required any more)" 
                     ."\n");
         }
-        
-        
+     
         
         if ($email === false || isset($email['error'])) {
             // object returned 'false' - it does not know how to send it..
@@ -163,6 +162,12 @@ class Pman_Core_NotifySend extends Pman
                             $email['error'] : "INTERNAL ERROR  - We can not handle " . $w->ontable)
                     ."\n");
         }
+        if (isset($email['later'])) {
+            $old = clone($w);
+            $w->act_when = $email['later'];
+            $w->update($old);
+            die(date('Y-m-d h:i:s ') . " Delivery postponed by email creator";
+        }
         
          
         if (!isset($email['headers']['Message-Id'])) {