Skip to main content

Name

msg:text_match — Streaming PCRE search across the transfer-decoded, UTF-8 text version of the message body

Synopsis

msg:text_match(pattern);

pattern: string

Description

Streaming PCRE search across the transfer-decoded, UTF-8 text version of the message body. Only parts that have a 'text' mime type will be included in the search. This function returns the matches as a table. If no match is found, false is returned.

Enable this function with the statement require('msys.extended.message');.

Was this page helpful?