[#10332] New permission: max_forward_addresses
Summary New permission: max_forward_addresses
Queue Ingo
Queue Version Git master
Type Enhancement
State Resolved
Priority 1. Low
Owners slusarz@horde.org
Requester almarin@um.es
Created 2011-07-12 (2992 days ago)
Due
Updated 2014-02-12 (2046 days ago)
Assigned
Resolved 2014-02-12 (2046 days ago)
Milestone
Patch No

Comments
almarin@um.es 2011-07-12 11:10:35
Hi,

We are using Ingo to store forward filters with sieve driver. We have 
limited in our mail servers the maximum number of addresses to 
forward, but Ingo allows to indicate any number of addresses to forward.

We have developed a patch including a new preference called 
max_forward_addresses in ingo prefs, to check it before store the 
filters. I don't know if it could be a interesting functionality to 
port to Horde 4.

Regards

Jan Schneider <jan@horde.org> 2011-07-12 12:31:03
If this is a server-wide administrator-set limit, why do you implement 
that as a preference? If this is supposed to get into Ingo 2 (we won't 
add any new features to Ingo 1), this should be implemented as a 
permission instead.

almarin@um.es 2011-07-18 10:12:47
You are right, it shouldn't be modeled as a preference. I don't know 
too much the new permission system, but maybe the better way to 
implement this functionality would be a script-specific param. As far 
as i know, this limitation of number of forward recipients is a 
"sieve" feature, so this should be checked and implemented inside the 
sieve filter according to a parameter specified in key 'scriptparams' 
of the backend.

From my point of view it could be a nice enhancement, but i can't 
develop a patch so it's up to you to keep this ticket open.

Regards.

almarin@um.es 2012-10-30 10:57:15
A simple patch to create a new permission in ingo to allow to specify 
a maximun number of forward recipients

Jan Schneider <jan@horde.org> 2013-01-30 14:44:46
The patch for forward.php is emtpy.

Git Commit <commits@lists.horde.org> 2014-02-12 00:46:00
Changes have been made in Git (master):

commit 6cddba4001f1eecbb9ddba97e8a2cfa6be85b777
Author: Michael M Slusarz <slusarz@horde.org>
Date:   Tue Feb 11 17:45:22 2014 -0700

     [mms] Add 'max_forward' permission (Request #10332).

  ingo/docs/CHANGES            |    1 +
  ingo/docs/UPGRADING          |    1 +
  ingo/lib/Perms.php           |    4 ++++
  ingo/lib/Storage/Forward.php |   16 +++++++++++++++-
  ingo/package.xml             |    1 +
  5 files changed, 22 insertions(+), 1 deletions(-)

http://git.horde.org/horde-git/-/commit/6cddba4001f1eecbb9ddba97e8a2cfa6be85b777

Michael Slusarz <slusarz@horde.org> 2014-02-12 00:46:31
Ingo 3.2.