cypht-org / cypht

Cypht: Lightweight Open Source webmail aggregator [PHP, JS]. Supports IMAP/SMTP, JMAP and soon EWS
http://cypht.org
GNU Lesser General Public License v2.1
1.01k stars 164 forks source link

Fix flags issue breaking email copied from tiki tracker to be read #1371

Closed josaphatim closed 4 days ago

josaphatim commented 6 days ago

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:

  1. Copy/Move a mail to a tracker
  2. Open the mail copied/moved in the tracker
  3. Copy/Move the email to a folder in imap server
  4. Open the email copied/moved on the imap server which won't show.