This shows you the differences between two versions of the page.
Last revision | |||
— | reference:spamrules_statement_zipcount [2015/11/17 13:16] – created paul | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ======Spam Filter Rules: ZipCount====== | ||
+ | ^Statement | ||
+ | ^Version | ||
+ | ^Purpose | ||
+ | The **ZipCount** statement requires a message section number and variable name, in the format | ||
+ | ZipCount <message section number> < | ||
+ | |||
+ | * If the message section doesn' | ||
+ | * If the message section does contain a ZIP attachment, then the variable will be set to the number of files in the ZIP attachment | ||
+ | |||
+ | =====Example===== | ||
+ | The following example will iterate through the MIME sections and get the ZIP file content count into a variable ${zipcount} | ||
+ | < | ||
+ | ForEach MimeSection SectionInfo | ||
+ | | ||
+ | ${SectionId} = ${1} | ||
+ | ${SectionType} = ${3} | ||
+ | If ${SectionType} == " | ||
+ | | ||
+ | EndIf | ||
+ | EndIf | ||
+ | EndForEach | ||
+ | </ |