--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Find all fields that match the given +name and <tt>value</tt>.
- !ruby/struct:SM::Flow::P 
  body: If <tt>name</tt> is a String, all fields of that name are tested. If <tt>name</tt> is a Regexp, the field names are matched against the regexp (the field names are converted to lower case first). Use the regexp // if you want to test all field names.
- !ruby/struct:SM::Flow::P 
  body: If <tt>value</tt> is a String, it is converted to a case insensitive Regexp that matches the string. Otherwise, it must be a Regexp. Note that the field value may be folded across many lines, so you may need to use a multi-line Regexp. Also consider using a case insensitive Regexp. Use the regexp // if you want to match all possible field values.
- !ruby/struct:SM::Flow::P 
  body: Returns a new RMail::Header holding all matching headers.
- !ruby/struct:SM::Flow::P 
  body: "Examples:"
- !ruby/struct:SM::Flow::VERB 
  body: " received = header.match('Received', //)\n destinations = header.match(/^(to|cc|bcc)$/, //)\n bigfoot_received = header.match('received',\n                                 /from.*by.*bigfoot\\.com.*LiteMail/im)\n"
- !ruby/struct:SM::Flow::P 
  body: "See also: #match?"
full_name: RMail::Header#match
is_singleton: false
name: match
params: (name, value)
visibility: public
