[PR #1371] [MERGED] Fix flags issue breaking email copied from tiki tracker to be read #1460

Closed
opened 2026-02-25 21:38:21 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/cypht-org/cypht/pull/1371
Author: @josaphatim
Created: 11/19/2024
Status: Merged
Merged: 11/21/2024
Merged by: @kroky

Base: masterHead: fix-flags-issue-tiki-integration


📝 Commits (1)

  • 644d6e3 Fix flags issue breaking email copied from tiki tracker to be read

📊 Changes

1 file changed (+4 additions, -0 deletions)

View changed files

📝 modules/imap/hm-imap.php (+4 -0)

📄 Description

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.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/cypht-org/cypht/pull/1371 **Author:** [@josaphatim](https://github.com/josaphatim) **Created:** 11/19/2024 **Status:** ✅ Merged **Merged:** 11/21/2024 **Merged by:** [@kroky](https://github.com/kroky) **Base:** `master` ← **Head:** `fix-flags-issue-tiki-integration` --- ### 📝 Commits (1) - [`644d6e3`](https://github.com/cypht-org/cypht/commit/644d6e355828330af85cb0aa6903e90fe6e9e088) Fix flags issue breaking email copied from tiki tracker to be read ### 📊 Changes **1 file changed** (+4 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `modules/imap/hm-imap.php` (+4 -0) </details> ### 📄 Description 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-25 21:38:21 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/cypht#1460
No description provided.