class Mail::Body

def match(regexp)

body.match(/The/) #=> #
body.encoding = 'base64'
body = Mail::Body.new("VGhlIGJvZHk=\n")

body.match(/The/) #=> #
body = Mail::Body.new('The body')

Examples:

Accepts a string and performs a regular expression against the decoded text
def match(regexp)
  self.decoded.match(regexp)
end