User Tools

Site Tools


reference:spamrules_statement_getdecodedsection

This is an old revision of the document!


Spam Filter Rules: GetDecodedSection

Statement GetDecodedSection
Version 2.1.11+
Purpose Returns a specified MIME section of a message into a variable, after processing any Base64 or Quoted-Printable encoding of the raw message data

The GetDecodedSection statement requires a message section number and variable name, in the format

GetDecodedSection <message section number> <variable name>

The section numbers start at 0 for the header, 1 for the first message section and so on.

Examples

Basic example, returning the result into the ${SectionText} variable

GetDecodedSection 1 SectionText

Using GetDecodedSection with ForEach MimeSection

ForEach MimeSection SectionInfo
 IfMatch ${SectionInfo} "/^(\d+):([\d\. ]*):(.*?):(\d+):(\d+):(.*)$/"
  ${SectionId} = ${1}
  GetDecodedSection ${SectionId} SectionText
 EndIf
EndFor
reference/spamrules_statement_getdecodedsection.1402396253.txt.gz · Last modified: 2018/11/14 10:44 (external edit)