Skip to content

Commit

Permalink
Merge pull request #1371 from josaphatim/fix-flags-issue-tiki-integra…
Browse files Browse the repository at this point in the history
…tion

Fix flags issue breaking email copied from tiki tracker to be read
  • Loading branch information
kroky authored Nov 21, 2024
2 parents 4a78bfd + 644d6e3 commit 467e33c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/imap/hm-imap.php
Original file line number Diff line number Diff line change
Expand Up @@ -1434,6 +1434,10 @@ public function get_message_headers($uid, $message_part=false, $raw=false) {
$results[$vals[0]] = $vals[1];
}
}
if ($flags && is_array($results['Flags'])) {
$results['Flags'] = array_unique($results['Flags']);
$results['Flags'] = implode(' ', $results['Flags']);
}
if ($status) {
return $this->cache_return_val($results, $cache_command);
}
Expand Down

0 comments on commit 467e33c

Please sign in to comment.