Skip to content

Commit

Permalink
work around for what appears to be a gmail imap bug with folder lists
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonmunro committed Mar 17, 2017
1 parent c0c49ae commit e9f1fdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/imap/hm-imap.php
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ public function get_mailbox_list($lsub=false, $mailbox='', $keyword='*') {
if (stristr($flags, 'noinferiors')) {
$can_have_kids = false;
}
if (($folder == $namespace && $namespace) || stristr($flags, 'haschildren')) {
if (($folder == $namespace && $namespace) || stristr($flags, 'hashchildren') || stristr($flags, 'haschildren')) {
$has_kids = true;
}
if ($folder != 'INBOX' && $folder != $namespace && stristr($flags, 'noselect')) {
Expand Down

0 comments on commit e9f1fdf

Please sign in to comment.