[Tickets #7057] wrong empty DB file

bugs at horde.org bugs at horde.org
Fri Jul 11 07:28:58 UTC 2008


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/7057
------------------------------------------------------------------------------
  Ticket             | 7057
  Created By         | rsalmon at mbpgroup.com
  Summary            | wrong empty DB file
  Queue              | Vacation
  Version            | HEAD
  Type               | Bug
  State              | Unconfirmed
  Priority           | 1. Low
  Milestone          |
  Patch              |
  Owners             |
------------------------------------------------------------------------------


rsalmon at mbpgroup.com (2008-07-11 03:28) wrote:

here is a patch
--- forwards.php.org    2008-07-11 09:26:24.000000000 +0200
+++ forwards.php        2008-07-10 19:13:00.000000000 +0200
@@ -63,13 +63,19 @@

          // Build the message.
          $full_message = $this->_buildMessage($message, $subject, $from);
+        // Set up the vacation specific files first.
+
+        $status = $this->_vfs->writeData('', '.vacation.msg', $full_message);
+        if (is_a($status, 'PEAR_Error')) {
+            $this->err_str = $status->getMessage();
+            return false;
+        }

          // Set up the vacation specific files first.
-        foreach (array('.vacation.msg' => $full_message,
-                       '.vacation.pag' => $dbfile,
+        foreach (array('.vacation.pag' => $dbfile,
                         '.vacation.dir' => $dbfile,
                         '.vacation.db'  => $dbfile) as $file => $content) {
-            $status = $this->_vfs->writeData('', $file, $content);
+            $status = $this->_vfs->write('', $file, $content);
              if (is_a($status, 'PEAR_Error')) {
                  return $status;
              }






More information about the bugs mailing list