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!

IMAP Folder Subscription

Discussion in 'E-mail Discussion' started by mohdyasar, Feb 1, 2008.

  1. mohdyasar

    mohdyasar Active Member

    Joined:
    Jun 27, 2004
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    156
    Dear All

    I just noticed that all folders which show up on Horder aren't showing in Thunderbird, I have to manually subscribe them and then they come.

    I need a script to auto subscribe all user folders to their respective folders, in Outlook

    Can someone please advise how thats done. Below is a script which I supposed would work, But I am not sure I want to try on one domain the below script can someone verify this, or provide a new one, completely.

    #!/usr/bin/perl

    use Cwd;

    opendir(DOMAIN, '/mail') or die "Unable to opendir /mail";
    while($domain = readdir DOMAIN)
    {
    next if ($domain eq '.' or $domain eq '..');
    opendir(LETTER, "/mail/$domain");
    while($letter = readdir LETTER)
    {
    next if ($letter eq '.' or $letter eq '..');
    opendir(ACCOUNT, "/mail/$domain/$letter");
    while($account = readdir ACCOUNT)
    {
    #next if($domain ne 'wilkshire.net' $account ne 'cody');
    next if ($account eq '.' or $account eq '..');
    opendir(MDIR, "/mail/$domain/$letter/$account/.maildir");
    print("/mail/$domain/$letter/$account/.maildir\n");
    open(SUBSCRIBED, ">/mail/$domain/$letter/$account/.maildir/courierimapsubscribed");
    print(SUBSCRIBED "INBOX\n");
    while($_ = readdir MDIR)
    {
    next if ($_ eq '.' or $_ eq '..');
    next if !/\./;
    print(SUBSCRIBED 'INBOX'.$_."\n");
    }
    close(SUBSCRIBED);
    chown(89,89, "/mail/$domain/$letter/$account/.maildir/courierimapsubscribed");
    }
    }
    }
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. mohdyasar

    mohdyasar Active Member

    Joined:
    Jun 27, 2004
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    156
    No body Helping

    Please help me sort this out ..

    Thanks
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Kent Brockman

    Kent Brockman Well-Known Member

    Joined:
    Jan 20, 2008
    Messages:
    1,181
    Likes Received:
    7
    Trophy Points:
    168
    Location:
    Buenos Aires, Argentina
    cPanel Access Level:
    Root Administrator
    Twitter:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. mohdyasar

    mohdyasar Active Member

    Joined:
    Jun 27, 2004
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    156
    You got me wrong

    Kent
    Thanks for the reply

    But I think you got me wrong, I am using a webmail client, not outllook or thunderbird.

    My Folders which are subscribed in Horde do not actually show up as subscrobed in Roundcube (Webmail)

    What could be the problem.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. mohdyasar

    mohdyasar Active Member

    Joined:
    Jun 27, 2004
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    156
    Addition

    I mean

    I tried webmail and oulook both

    The problem wtill remains the same,
     
    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