Hello Mathew,
Does this filter is the most recent of you ? I hesitate to use it. Currently, we use the following :
if //at least one must return true ((attachment-filename == "(?i)\\.(docm|dotm|potm|ppam|ppsm|pptm|sldm|vsdm|vssm|vstm|xlam|xlsm|xlt...