title: How do I filter csv email attachments via RouteonAttributes by attachment name?
body: <p>I want to filter csv email attachments I extract from gmail via <code>ConsumeIMAP</code> by their file name. I am having trouble with what syntax to use when I am configuring <code>RouteonAttributes</code> processor.</p>
  
  <p>I was able to extract the csv file from gmail by configuring RouteonAttributes to </p>
  
  <pre><code>fetchcsv | ${filename:contains('.csv')}
  </code></pre>
  
  <p>but when I try to specify the filename</p>
  
  <pre><code>"${filename:contains('Threat_-_SQL_Injection_-_Rule*')}"
  </code></pre>
  
  <p>it always routes to unmatched. The file name is <code>Threat_-_SQL_Injection_-_Rule-2019-06-29</code>. The date following <code>"Rule-"</code> will be constantly changing as well depending on the date it was sent. I would also need to write a route to property name for the file <code>"Threat_-_Vulnerability_Scanner_-_Rule-2019-06-28"</code>. Any help with the configuration would be appreciated.</p>