This file is indexed.

/usr/share/horde/ingo/templates/basic/rule/rule.html.php is in php-horde-ingo 3.2.16-1ubuntu1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
<form method="post" id="rule" name="rule" action="<?php echo $this->formurl ?>">
 <?php echo $this->hiddenFieldTag('actionID') ?>
 <?php echo $this->hiddenFieldTag('conditionnumber', -1) ?>
<?php if (!is_null($this->edit)): ?>
 <?php echo $this->hiddenFieldTag('edit', $this->edit) ?>
<?php endif; ?>
<?php if (isset($this->rule['id'])): ?>
 <?php echo $this->hiddenFieldTag('id', $this->rule['id']) ?>
<?php endif; ?>

 <div class="header">
  <?php echo _("Filter Rule") ?>
<?php if (!empty($this->rule['disable'])): ?>
  [<span class="horde-form-error"><?php echo _("Disabled") ?></span>]
<?php endif; ?>
  <?php echo $this->hordeHelp('ingo', 'rule') ?>
 </div>

 <div class="control">
  <?php echo $this->hordeLabel('name', _("Rule Name:")) ?>
  <input class="input" id="name" name="name" size="50" value="<?php echo isset($this->rule['name']) ? $this->h($this->rule['name']) : '' ?>" />
  <?php echo $this->hordeHelp('ingo', 'rule-name') ?>
 </div>

 <div>
  <em><?php echo _("For an incoming message that matches:") ?></em>
  <?php echo $this->hordeHelp('ingo', 'rule-match') ?>
 </div>

 <div class="ruleCondition">
  <?php echo $this->radioButtonTag('combine', Ingo_Storage::COMBINE_ALL, $this->rule['combine'] == Ingo_Storage::COMBINE_ALL, array('id' => 'all')) ?>
  <?php echo $this->hordeLabel('all', _("ALL of the following")) ?>
  <?php echo $this->radioButtonTag('combine', Ingo_Storage::COMBINE_ANY, $this->rule['combine'] == Ingo_Storage::COMBINE_ANY, array('id' => 'any')) ?>
  <?php echo $this->hordeLabel('any', _("ANY of the following")) ?>
 </div>

 <div class="ruleMatch">
<?php foreach ($this->filter as $f): ?>
  <div class="ruleMatchRow">
   <div class="ruleMatchCondition">
<?php if ($f['cond_num'] > 0): ?>
    <strong><?php echo ($this->rule['combine'] == Ingo_Storage::COMBINE_ALL) ? _("and") : _("or") ?></strong>
<?php endif; ?>
   </div>
   <div>
    <label for="field_<?php echo $f['cond_num'] ?>" class="hidden"><?php echo _("Field") ?></label>
    <select id="field_<?php echo $f['cond_num'] ?>" name="field[<?php echo $f['cond_num'] ?>]">
<?php if ($f['lastfield']): ?>
     <option value=""><?php echo _("Select a field") ?></option>
     <option disabled="disabled" value="">- - - - - - - - - -</option>
<?php endif; ?>
<?php foreach ($this->fields as $k => $v): ?>
<?php if (in_array($v['type'], $this->avail_types)): ?>
     <?php echo $this->optionTag($k, $this->h($v['label']), $f['field'] == $k) ?>
<?php endif; ?>
<?php endforeach; ?>
<?php if (count($this->special)): ?>
     <option disabled="disabled" value="">- - - - - - - - - -</option>
<?php foreach ($this->special as $v): ?>
     <?php echo $this->optionTag($v, $this->h($v), $f['field'] == $v) ?>
<?php endforeach; ?>
<?php endif ?>
<?php if ($this->userheader): ?>
     <option disabled="disabled" value="">- - - - - - - - - -</option>
     <?php echo $this->optionTag(Ingo::USER_HEADER, _("Self-Defined Header"), isset($f['userheader'])) ?>
<?php endif; ?>
    </select>
<?php if (isset($f['userheader'])): ?>
    <label for="userheader_<?php echo $f['cond_num'] ?>" class="hidden"><?php echo _("User header") ?></label>
    <input id="userheader_<?php echo $f['cond_num'] ?>" name="userheader[<?php echo $f['cond_num'] ?>]" value="<?php echo $this->h($f['userheader']) ?>" />
<?php endif; ?>
   </div>
<?php if (!$f['lastfield']): ?>
   <div>
    <label for="match_<?php echo $f['cond_num'] ?>" class="hidden"><?php echo _("Match type") ?></label>
    <select id="match_<?php echo $f['cond_num'] ?>" name="match[<?php echo $f['cond_num'] ?>]">
<?php if (empty($f['matchtest'])): ?>
     <option disabled="disabled" value="">- - - - - - - - - -</option>
<?php else: ?>
<?php foreach ($f['matchtest'] as $v): ?>
     <?php echo $this->optionTag($v['value'], $this->h($v['label']), $v['selected']) ?>
<?php endforeach; ?>
<?php endif; ?>
    </select>
   </div>
   <div>
<?php if (isset($f['match_value'])): ?>
    <label for="value_<?php echo $f['cond_num'] ?>" class="hidden">Value</label>
    <input id="value_<?php echo $f['cond_num'] ?>" name="value[<?php echo $f['cond_num'] ?>]" size="40" value="<?php echo $this->h($f['match_value']) ?>" />
<?php endif; ?>
<?php if (isset($f['case_sensitive'])): ?>
    <?php echo $this->checkBoxTag('case[' . $f['cond_num'] . ']', 1, (bool)$f['case_sensitive'], array('class' => 'caseSensitive', 'id' => 'case_' . $f['cond_num'])) ?>
    <?php echo $this->hordeLabel('case_' . $f['cond_num'], _("Case Sensitive")) ?>
<?php endif; ?>
   </div>
<?php endif; ?>
<?php if (!$f['lastfield']): ?>
   <div>
    <?php echo Horde::link('javascript:IngoRule.delete_condition(' . intval($f['cond_num']) . ');', _("Delete Condition")) . $this->hordeImage('delete.png', _("Delete Condition")) ?></a>
   </div>
<?php endif; ?>
  </div>
<?php endforeach; ?>
 </div>

 <div>
  <em><?php echo $this->hordeLabel('action', _("Do this:")) ?></em>
  <?php echo $this->hordeHelp('ingo', 'rule-action') ?>
 </div>

 <div class="ruleAction">
  <select id="action" name="action">
<?php foreach ($this->actions as $v): ?>
   <?php echo $this->optionTag($v['value'], $this->h($v['label']), $v['selected']) ?>
<?php endforeach; ?>
  </select>
<?php if ($this->actionvaluelabel): ?>
  <label for="actionvalue" class="hidden"><?php echo $this->actionvaluelabel ?></label>
  <?php echo $this->actionvalue ?>
<?php endif; ?>
 </div>

<?php if ($this->flags): ?>
  <tr>
   <td>
    <em><?php echo _("Mark message as:") ?></em>
    <br />
    <table>
     <tr>
      <td>
       <?php echo $this->checkBoxTag('flags[]', Ingo_Storage::FLAG_SEEN, (bool)(Ingo_Storage::FLAG_SEEN & $this->rule['flags']), array('id' => 'seen')) ?>
       <?php echo $this->hordeLabel('seen', _("Seen")) ?>
      </td>
      <td>
       <?php echo $this->checkBoxTag('flags[]', Ingo_Storage::FLAG_FLAGGED, (bool)(Ingo_Storage::FLAG_FLAGGED & $this->rule['flags']), array('id' => 'flagged')) ?>
       <?php echo $this->hordeLabel('flagged', _("Flagged")) ?>
      </td>
      <td>
       <?php echo $this->checkBoxTag('flags[]', Ingo_Storage::FLAG_ANSWERED, (bool)(Ingo_Storage::FLAG_ANSWERED & $this->rule['flags']), array('id' => 'answered')) ?>
       <?php echo $this->hordeLabel('answered', _("Answered")) ?>
      </td>
      <td>
       <?php echo $this->checkBoxTag('flags[]', Ingo_Storage::FLAG_DELETED, (bool)(Ingo_Storage::FLAG_DELETED & $this->rule['flags']), array('id' => 'deleted')) ?>
       <?php echo $this->hordeLabel('deleted', _("Deleted")) ?>
      </td>
     </tr>
    </table>
   </td>
   <td>
    <?php echo $this->hordeHelp('ingo', 'rule-mark') ?>
   </td>
  </tr>
<?php endif; ?>

<?php if ($this->stop): ?>
 <div>
  <?php echo $this->checkBoxTag('stop', '1', (bool)$this->rule['stop'], array('class' => 'ruleStopChecking')) ?>
  <?php echo $this->hordeLabel('stop', _("Stop checking if this rule matches?")) ?>
  <?php echo $this->hordeHelp('ingo', 'rule-stop') ?>
 </div>
<?php endif; ?>

 <div class="horde-form-buttons">
  <input class="horde-default" id="rule_save" type="button" value="<?php echo _("Save") ?>" />
  <input type="button" id="rule_cancel" value="<?php echo _("Return to Filters List") ?>" />
 </div>
</form>