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.

Getting iMap Folders

Discussion in 'cPanel Developers' started by iSofia, Oct 15, 2014.

  1. iSofia

    iSofia Member

    Joined:
    Jun 3, 2014
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    Is there any API function to list the iMap folders of any one mail account?

    Thank you. :)
     
  2. vanessa

    vanessa Well-Known Member
    PartnerNOC

    Joined:
    Sep 26, 2006
    Messages:
    817
    Likes Received:
    22
    Trophy Points:
    18
    Location:
    Virginia Beach, VA
    cPanel Access Level:
    DataCenter Provider
    There is only one to list email accounts, not to list imap folders. It wouldn't be too hard to write though if you're familiar with API2.
     
  3. iSofia

    iSofia Member

    Joined:
    Jun 3, 2014
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    Hi vanessa, and thank you so much for your reply. At least I can rule that out and search for other avenues.

    I'll take a look at the API of the webmail client I'm using, although any other suggestions would still be appreciated.

    Once again, thank you. :)
     
  4. vanessa

    vanessa Well-Known Member
    PartnerNOC

    Joined:
    Sep 26, 2006
    Messages:
    817
    Likes Received:
    22
    Trophy Points:
    18
    Location:
    Virginia Beach, VA
    cPanel Access Level:
    DataCenter Provider
    I'm not sure what client you're using, but a lot of languages already have built-in imap support to where once you auth you can poll the imap server for folders. For example:

    PHP: IMAP - Manual
     
  5. iSofia

    iSofia Member

    Joined:
    Jun 3, 2014
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    Yes, and I am using a couple of their APIs to remotely login and logout. And they also seem to have the API to get the folders, but I just can't figure out how to use it.

    Oh yes, btw, I'm using AfterLogic's WebMail Lite. The API function in question is Folders, as it is listed here:

    WebMail Lite API Reference

    I appreciate your kind attention, vanessa. :)
     
  6. vanessa

    vanessa Well-Known Member
    PartnerNOC

    Joined:
    Sep 26, 2006
    Messages:
    817
    Likes Received:
    22
    Trophy Points:
    18
    Location:
    Virginia Beach, VA
    cPanel Access Level:
    DataCenter Provider

    I've never used their stuff, but it looks like it might already have a method of integration:

    How to install WebMail Pro on cPanel server - AfterLogic Knowledge Base
     
  7. iSofia

    iSofia Member

    Joined:
    Jun 3, 2014
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    Thank you for that. I didn't go that route because I am creating a custom login page, and have also integrated password, forwarding, and auto-responder functionality into the mail client itself (without using Sieve), and am now trying to implement filtering. It's a very simplified version of what cPanel already offers, but for the less tech-savvy users (haha! look who's talking!).

    Integration would expose these standard offerings, and that might lead to more customer support. :(

    The Folders function is definitely the ticket, and I'm tinkering with it now. I'm familiar with the API initialization, but I'm still having trouble trying to read the returned values in the CApiMailFolderCollection object.

    I'll keep you posted, and please do also let me know if you have any suggestions with this.

    Thank you.
     
Loading...

Share This Page