This is an old revision of the document!
| 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.
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