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.

Mail folder disappeared ( again )

Discussion in 'E-mail Discussions' started by hamerr, Jul 23, 2008.

  1. hamerr

    hamerr Member

    Joined:
    Sep 18, 2007
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Hello, i`m bulding a remove email app and when i`m deleting users the whole 'mail' folder from my home directory disappears.

    mail/realdelpop.html?email=someemail&domain=somedomain

    It doesn't happen every time.Why is that ?
     
  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
    If this app is going to be used by resellers/root level users, you may just want to call the following API1 function directly:

    <cpanel Email="delpop($FORM{'email'},0,$FORM{'domain'})">

    Calling the API directly would filter out issues that could potentially be caused by custom themes.

    Note, those without access to WHM cannot call the API.
     
  3. hamerr

    hamerr Member

    Joined:
    Sep 18, 2007
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Its user level.There is no such cmd in cPanel's API2 so thats the only way to use it.I wrote a ticket to my hosting provider 2 days ago but still no luck.I know what my script does and how it does it. I think that its a cPanel bug but, cant track it. Can we somehow check it out test it or whatever ?
     
  4. hamerr

    hamerr Member

    Joined:
    Sep 18, 2007
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Mail Account Maintenance
    Account Deleted

    The e-mail account @somedomain.net was successfully deleted.
    Syntax Mismatch Syntax Mismatch


    I did some testing on realdelpop.html and that is what i came up with.

    /frontend/x3/mail/realdelpop.html?domain=somedomain.com&email=
    sets and error but everything is gone if 'email' is empty or NULL.

    I`ve fixed my code, but you should realy check this out.
    Syntax mismatch and the folder is whiped out :)

    Thank you.
     
Loading...

Share This Page