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.

XMLAPI Email:storefilter no error, but doesnt save

Discussion in 'cPanel Developers' started by cornfeedhobo, Dec 8, 2011.

  1. cornfeedhobo

    cornfeedhobo Member

    Joined:
    Dec 2, 2011
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    So I am pretty stumped. I am storing a filter and it says successful but then it just resets everything to null. As if I made a filter, gave it a name, and just hit save...

    array(9) {
    ["account"]=> string(34) "test@domain.org"
    ["filtername"]=> string(8) "sdfgsdfg"
    ["oldfiltername"]=> string(8) "sdfgsdfg"
    ["action"]=> string(4) "save"
    ["dest"]=> string(5) "INBOX"
    ["match"]=> string(2) "is"
    ["opt"]=> string(2) "or"
    ["part"]=> string(13) "$header_from:"
    ["val"]=> string(6) "234234"
    }
    array(1) {
    [0]=> array(1) {
    ["cpanelresult"]=> array(5) {
    ["data"]=> array(1) {
    [0]=> array(4) {
    ["error"]=> int(0)
    ["result"]=> string(13) "Filter Saved."
    ["account"]=> string(34) "test@domain.org"
    ["ok"]=> int(1)
    }
    }
    ["event"]=> array(1) {
    ["result"]=> int(1)
    }
    ["module"]=> string(5) "Email"
    ["apiversion"]=> int(2)
    ["func"]=> string(11) "storefilter"
    }
    }
    }

    xmlapi->api2_query(<cpaneluser>, 'Email', 'storefilter', $request);

    Let me know if I can post up anything else of value.
    This is the last thing standing in my way of finishing this plugin :-D
    Thanks in advance
    -cornfeedhobo
     
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Can you do a print_r on $request just before you call the api2_query function? That would be useful with assisting. Or is that what you posted there in your post?
     
  3. cornfeedhobo

    cornfeedhobo Member

    Joined:
    Dec 2, 2011
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Thank you, I solved my problem already.
     
Loading...

Share This Page