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!

SOLVED set_tweaksetting function

Discussion in 'cPanel Developers' started by plesk4lyf, Jun 8, 2018.

Tags:
  1. plesk4lyf

    plesk4lyf Member
    PartnerNOC

    Joined:
    May 21, 2018
    Messages:
    12
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    Sydney
    cPanel Access Level:
    Root Administrator
    Hi Guys,

    Using the whmapi1 I have a bash script that use the set_tweaksetting function.

    I'm having trouble finding the key for "Enable mailbox usage warnings". I can see there are keys for emailusers_mailbox_warn_percent, emailusers_mailbox_critical_percent and emailusers_mailbox_full_percent.

    Does the key exist?
     
  2. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,563
    Likes Received:
    42
    Trophy Points:
    308
    cPanel Access Level:
    Root Administrator
    Hi,

    The key you want is "skipboxcheck".

    One way to find the tweaksetting key name is to look in /usr/local/cpanel/whostmgr/docroot/themes/x/tweaksettings/Main.yaml. Search that file for the text that appears in the UI and you will find the key.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. plesk4lyf

    plesk4lyf Member
    PartnerNOC

    Joined:
    May 21, 2018
    Messages:
    12
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    Sydney
    cPanel Access Level:
    Root Administrator
    Hey Kenneth,

    Thanks! That's exactly what I was looking for. I was thrown off by the "skip" part on the key name.

    Works great now.
     
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