The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Email StoreFilter API and matches regex comparison

Discussion in 'cPanel Developers' started by swbrains, May 16, 2016.

  1. swbrains

    swbrains Active Member

    Joined:
    Sep 13, 2006
    Messages:
    40
    Likes Received:
    2
    Trophy Points:
    8
    I viewed the documentation for Email::storefilter, but did not see an option to set the comparison to "matches regex", as is available using the cPanel UI. Is it possible to create such a filter using the API?

    Thanks,
    Vinnie
     
  2. swbrains

    swbrains Active Member

    Joined:
    Sep 13, 2006
    Messages:
    40
    Likes Received:
    2
    Trophy Points:
    8
    Ok, it looks like the comparison is "matches". I was looking for something that said "regex" and scanned right over it. My tests seem to indicate that "matches" will create a filter that has a "matches regex" comparison in the UI.
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page