I'm using Pegasus' mail filtering rules and looking for a way to exclude certain attachments from processing. The attachment rules lack the option to apply an action if the specified condition is NOT met. (Many other rules can reverse their logic that way.)
According to the docs, "attachment rules are applied in sequence to all attachments in the message". Does that mean "apply this rule's action to each matching attachment in sequence" (*)? Then what do SKIP and GOTO actions mean?
For example, assuming the following rules:
# MList
If not header "S" contains "[MList]" Goto "!MList"
If attachment NamePart matches "foo" SkipNext ""
If attachment NamePart matches "*" SaveAttmt "C:\\MList" 1
Label "!MList"
Which attachments are saved?
- All, unless there is a "foo" attachment, in which case nothing is saved or
- All, except "foo"
(Both cases mean that some kind of state information is conveyed from the first rule to the second.)
Best regards
Erik, somewhat confused
(*) Another interpretation would be "for each attachment in the message, apply rules in sequence", but that seems contrary to Pegasus' normal rule evaluation order.
<p>I'm using Pegasus' mail filtering rules and looking for a way to exclude certain attachments from processing. The attachment rules lack the option to apply an action if the specified condition is NOT met. (Many other rules can reverse their logic that way.)
</p><p>According to the docs, "attachment rules are applied in sequence to all attachments in the message". Does that mean "apply this rule's action to each matching attachment in sequence" (*)? Then what do SKIP and GOTO actions mean?</p><p>For example, assuming the following rules:</p><p><font face="courier new,courier"># MList
If not header "S" contains "[MList]" Goto "!MList"
If attachment NamePart matches "foo" SkipNext ""
</font><font face="courier new,courier">If attachment NamePart matches "*" SaveAttmt "C:\\MList" 1</font>
<font face="courier new,courier">Label "!MList"</font>
</p><p>Which attachments are saved?
</p><ol><li>All, unless there is a "foo" attachment, in which case nothing is saved &nbsp; &nbsp;&nbsp; <i>or</i><i></i></li><li>All, except "foo"<i></i></li></ol><p>(Both cases mean that some kind of state information is conveyed from the first rule to the second.)
</p><p>&nbsp;</p><p>Best regards</p><p>Erik, somewhat confused</p>(*) Another interpretation would be "for each attachment in the message, apply rules in sequence", but that seems contrary to Pegasus' normal rule evaluation order.