[ingo] adding a default "stop" to Sieve rules

liam hoekenga liamr at umich.edu
Wed Mar 30 08:28:58 PST 2005


Our helpdesk has requested that when creating new rules in Ingo, that "Stop
checking if this rule matches?" be checked by default.

It looks like this is set in templates/rule/footer.php.  I tried this..

--- footer.inc- 2005-03-30 11:23:36.000000000 -0500
+++ footer.inc  2005-03-30 11:24:07.000000000 -0500
@@ -59,5 +59,5 @@
   <tr class="item1">
     <td align="left" style="padding:5px">
-      <input type="checkbox" name="stop" value="1"<?php echo ($rule['stop']) ?
'checked="checked"' : '' ?>> <?php echo _("Stop checking if this rule
matches?") ?>
+      <input type="checkbox" name="stop" value="1"<?php echo (!$rule['stop']) ?
'' : 'checked="checked"' ?>> <?php echo _("Stop checking if this rule matches?")
?>
     </td>
     <td width="40px" align="right">

I'm guessing that this doesn't work because with a fresh rule $rule is probably
unpopulated.

So.. how do I set this default w/o breaking people's ability to uncheck this if
they wish?

Liam


More information about the ingo mailing list