Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Email StoreFilter API and matches regex comparison

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

  1. swbrains

    swbrains Well-Known Member

    Joined:
    Sep 13, 2006
    Messages:
    127
    Likes Received:
    15
    Trophy Points:
    168
    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 Well-Known Member

    Joined:
    Sep 13, 2006
    Messages:
    127
    Likes Received:
    15
    Trophy Points:
    168
    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:
    44,295
    Likes Received:
    1,847
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    I'm happy to see you were able to find the functionality you were seeking. Thank you for updating us with the outcome.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice