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