php imap中的电子邮件邮箱名称

I am creating a mail client and have many mailboxes in that now i have a list of emails and i want to show on list that to which mailbox that email belongs

Suppose: Show "Inbox" if email is from Inbox Show "Some Custom Mailbox" if the email is from Custom Mailbox

Is it possible with php_imap or any workaround that?

Thanks