This shows you the differences between two versions of the page.
Previous revision | |||
— | reference:spamrules_statement_getsectionencoding [2018/11/14 10:45] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ======Spam Filter Rules: GetSectionEncoding====== | ||
+ | ^Statement | ||
+ | ^Version | ||
+ | ^Purpose | ||
+ | The **GetSectionEncoding** statement requires a message section number and variable name, in the format | ||
+ | GetSectionEncoding <message section number> < | ||
+ | | ||
+ | The returned encoding method will be a text string such as " | ||
+ | |||
+ | =====Examples===== | ||
+ | Basic example, returning the result into the **${myEncoding}** variable | ||
+ | < | ||
+ | GetSectionEncoding 1 myEncoding | ||
+ | </ | ||
+ | |||
+ | Using **GetSectionEncoding** with [[spamrules_statement_foreach|ForEach MimeSection]] | ||
+ | < | ||
+ | ForEach MimeSection SectionInfo | ||
+ | | ||
+ | ${SectionId} = ${1} | ||
+ | GetSectionEncoding ${SectionId} myEncoding | ||
+ | EndIf | ||
+ | EndFor | ||
+ | </ |