This shows you the differences between two versions of the page.
Last revision | |||
— | reference:spamrules_statement_getsectionmd5 [2011/08/24 11:03] – created simon | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ======Spam Filter Rules: GetSectionMD5====== | ||
+ | ^Statement | ||
+ | ^Version | ||
+ | ^Purpose | ||
+ | The **GetSectionMD5** statement requires a message section number and variable name, in the format | ||
+ | GetSectionMD5 <message section number> < | ||
+ | | ||
+ | |||
+ | =====Examples===== | ||
+ | The following example will get the contents of the first section of the message, perform an MD5 hash on it, and put the result into the **${myMD5Hash}** variable | ||
+ | < | ||
+ | GetSectionMD5 1 myMD5Hash | ||
+ | </ | ||
+ | |||
+ | Using **GetSectionMD5** with [[spamrules_statement_foreach|ForEach MimeSection]] | ||
+ | < | ||
+ | ForEach MimeSection SectionInfo | ||
+ | | ||
+ | ${SectionId} = ${1} | ||
+ | GetSectionMD5 ${SectionId} myMD5Hash | ||
+ | EndIf | ||
+ | EndFor | ||
+ | </ |