[PR #661] [MERGED] fix for some attachments whose keys are exchanged #965

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

📋 Pull Request Information

Original PR: https://github.com/cypht-org/cypht/pull/661
Author: @josaphatim
Created: 12/13/2022
Status: Merged
Merged: 9/11/2023
Merged by: @kroky

Base: masterHead: pdf-issues


📝 Commits (1)

  • 3c3174e fix for some attachments whose keys are exchanged

📊 Changes

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

View changed files

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

📄 Description

Hm_IMAP_Struct::single_format that defines Field order of a single non-text message part sometimes message struct comes with a different order as seen in the screenshot and lead to wrong behaviors (Corrupts PDF generation in this particular case). Here the encoding becoming description, size becoming the encoding.

Screenshot 2022-12-13 at 15 09 43

Relates: https://avan.tech/item61844


🔄 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/661 **Author:** [@josaphatim](https://github.com/josaphatim) **Created:** 12/13/2022 **Status:** ✅ Merged **Merged:** 9/11/2023 **Merged by:** [@kroky](https://github.com/kroky) **Base:** `master` ← **Head:** `pdf-issues` --- ### 📝 Commits (1) - [`3c3174e`](https://github.com/cypht-org/cypht/commit/3c3174eec61ff939ee278c51f6529ca66210ab4d) fix for some attachments whose keys are exchanged ### 📊 Changes **1 file changed** (+10 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `modules/imap/hm-imap-bodystructure.php` (+10 -0) </details> ### 📄 Description Hm_IMAP_Struct::single_format that defines Field order of a single non-text message part sometimes message struct comes with a different order as seen in the screenshot and lead to wrong behaviors (Corrupts PDF generation in this particular case). Here the encoding becoming description, size becoming the encoding. <img width="1085" alt="Screenshot 2022-12-13 at 15 09 43" src="https://user-images.githubusercontent.com/80334370/207361185-ad31e19b-2702-4c2c-8669-ebee5048dc49.png"> Relates: https://avan.tech/item61844 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-25 21:36:48 +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#965
No description provided.