6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
7/30/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#7811] .forward file support for procmail mode broken
*
Your Email Address
*
Spam protection
Enter the letters below:
.__ __.. ..__..___ [__)(__ |\ || |[__ | .__)| \||__\|
Comment
> Ingo backends file instructions tells to define 'forward_file" and > "forward_string" additional parameters for dealing with mail servers > that allow application of procmail rules only on a per user basis. In > the example backends.php.dist file these parameters are, indeed, in > the $param array; however, the vfs.php driver tries to find them in > the wrong place, i.e. at row 76: > > if ($backend['script'] == 'procmail' && > isset($backend['forward_file']) && isset($backend['forward_string'])) > { > > > > problem is that $backend['forward_file'] is not defined, so that > condition is never true even if you uncomment the definitions in the > backends.php file. > > > > I don't know if it's the backends.php.dist file or the vfs.php that's > wrong. I've resolved changing the following rows of the latter one: > > > > if ($backend['script'] == 'procmail' && > isset($backend['params']['forward_file']) && > isset($backend['params']['forward_string'])) { > > if (empty($script)) { > > $result = > $this->_vfs->deleteFile($this->_params['vfs_forward_path'], > $backend['params']['forward_file']); > > } else { > > $result = > $this->_vfs->writeData($this->_params['vfs_forward_path'], > $backend['params']['forward_file'], $backend['params']['forw > > // Horde::logMessage("sono nel forward"); > > } > > if (is_a($result, 'PEAR_Error')) { > > return $result; > > } > > > > if (isset($this->_params['file_perms']) && !empty($script)) { > > $result = > $this->_vfs->changePermissions($this->_params['vfs_forward_path'], > $backend['params']['forward_file'], $this->_params[' > > if (is_a($result, 'PEAR_Error')) { > > return $result; > > } > > } > > } > > ------------------------------------ > > This way it's all working correctly (and I must say that ti is a > GREAT solutions for forward and vacation! Much better than any other > webmail I've tested). > > Best regards, > > Fabrizio > >
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers