Summary | wrong empty DB file |
Queue | Vacation |
Queue Version | HEAD |
Type | Bug |
State | Resolved |
Priority | 1. Low |
Owners | jan (at) horde (dot) org |
Requester | rsalmon (at) mbpgroup (dot) com |
Created | 07/11/2008 (6205 days ago) |
Due | |
Updated | 07/15/2008 (6201 days ago) |
Assigned | 07/15/2008 (6201 days ago) |
Resolved | 07/15/2008 (6201 days ago) |
Github Issue Link | |
Github Pull Request | |
Milestone | |
Patch | No |
State ⇒ Resolved
http://cvs.horde.org/diff.php/vacation/lib/Driver/forwards.php?r1=1.53&r2=1.54&ty=u
Assigned to Jan Schneider
New Attachment: forward.patch
patches as ticket attachments.
CVS/Entries : /forwards.php/1.53/Tue Jul 15 07:37:48 2008//
State ⇒ Feedback
as ticket attachments.
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ wrong empty DB file
Queue ⇒ Vacation
Milestone ⇒
Patch ⇒ No
State ⇒ Unconfirmed
--- 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;
}