The context is that Cypht in tiki uses Flags header to store flags. But once a email from tracker folder is copied/moved to an imap server the get_message_headers mixes imap flags and header flags making it an array of flags which breaks it usage. Because it is only used as a string.
To reproduce:
Copy/Move a mail to a tracker
Open the mail copied/moved in the tracker
Copy/Move the email to a folder in imap server
Open the email copied/moved on the imap server which won't show.
The context is that Cypht in tiki uses Flags header to store flags. But once a email from tracker folder is copied/moved to an imap server the get_message_headers mixes imap flags and header flags making it an array of flags which breaks it usage. Because it is only used as a string.
To reproduce: