User Tools

Site Tools


reference:spamrules_statement_getsectionencoding
no way to compare when less than two revisions

Differences

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  |GetSectionEncoding |
 +^Version  |2.3.9+ |
 +^Purpose  |Retrieves the MIME encoding method for the specified MIME section number, and returns the result into the specified variable |
  
 +The **GetSectionEncoding** statement requires a message section number and variable name, in the format
 +  GetSectionEncoding <message section number> <variable name>
 +  
 +The returned encoding method will be a text string such as "quoted-printable" or "base64" etc.
 +
 +=====Examples=====
 +Basic example, returning the result into the **${myEncoding}** variable
 +<code>
 +GetSectionEncoding 1 myEncoding
 +</code>
 +
 +Using **GetSectionEncoding** with [[spamrules_statement_foreach|ForEach MimeSection]]
 +<code>
 +ForEach MimeSection SectionInfo
 + IfMatch ${SectionInfo} "/^(\d+):([\d\. ]*):(.*?):(\d+):(\d+):(.*)$/"
 +  ${SectionId} = ${1}
 +  GetSectionEncoding ${SectionId} myEncoding
 + EndIf
 +EndFor
 +</code>
reference/spamrules_statement_getsectionencoding.txt · Last modified: 2018/11/14 10:45 by 127.0.0.1