Author Topic: Plugin Questions  (Read 2333 times)

Offline texxasrulez

  • Newbie
  • *
  • Posts: 9
Plugin Questions
« on: October 24, 2016, 11:31:35 PM »
I have looked far and wide to find a good tutorial for writing plugins for roundcube and have not found much. I am writing my first one and have most of it working like I want with just a few questions.

I want to display unread, total count and folder size for each folder for users.

I have it working with the inbox using "$imap->count(INBOX, 'UNSEEN')" for Unread, "$imap->count(INBOX, 'ALL')" for total and "$imap->folder_size(INBOX)" for folder size and it works as expected. What I am having troubles with is the other folders, Drafts, Sent, Junk and Archives.

I tried it these ways shown below and nothing I try will work with other folders.

$imap->count(INBOX.Drafts, 'UNSEEN')
$imap->count(Drafts, 'UNSEEN')
$imap->count(drafts_mbox, 'UNSEEN')


I was hoping someone would help point me in the right direction to finding a good place to learn and maybe the answer also would be nice ...

Does anyone have the answer I am looking for? I would appreciate it ..

Thanks in advance

Offline texxasrulez

  • Newbie
  • *
  • Posts: 9
Re: Plugin Questions
« Reply #1 on: October 28, 2016, 12:56:32 AM »
I solved it with "$imap->count('INBOX.Drafts', 'UNSEEN')"

I could have sworn I tried that, but maybe I didn't. Oh well, works now