| === StripAttachment |
| |
| Remove attachments from a Message. Supports simple removal, storing to file, |
| or storing to mail attributes. |
| |
| Configuration: |
| |
| .... |
| <mailet match="All" class="StripAttachment" > |
| <pattern >.*\.xls </pattern> <!-- The regular expression that must be matched -- > |
| <!-- notpattern >.*\.xls </notpattern--> <!-- The regular expression that must be matched -- > |
| <mimeType>text/calendar</mimeType> <!-- The matching mimeType -- > |
| <directory >c:\temp\james_attach </directory> <!-- The directory to save to -- > |
| <remove >all </remove> <!-- either "no", "matched", "all" -- > |
| <!-- attribute>my.attribute.name</attribute --> |
| </mailet > |
| .... |
| |
| At least one of pattern, notpattern and mimeType is required. |
| |