Summary | Add a method to Imap_Client that keeps the original flag case |
Queue | Horde Framework Packages |
Type | Enhancement |
State | New |
Priority | 1. Low |
Owners | |
Requester | frederik.guenther (at) iserv (dot) eu |
Created | 10/08/2024 (218 days ago) |
Due | |
Updated | 10/08/2024 (218 days ago) |
Assigned | |
Resolved | |
Milestone | |
Patch | Yes |
State ⇒ New
Priority ⇒ 1. Low
Type ⇒ Enhancement
Summary ⇒ Add a method to Imap_Client that keeps the original flag case
Queue ⇒ Horde Framework Packages
Milestone ⇒
Patch ⇒ Yes
keywords in the mailbox".
For my use-case this makes it necessary that I change the encoding of
keywords from UTF-8 to UTF7-IMAP to allow Umlauts in keywords.
Example: "Bööm" will be encoded as "B&APYA9g-m"
If I insert the lowercase Version of this string into
`mb_convert_encoding()`, I receive a different result ("b??m").
Therefore I propose a method that allows us to fetch keywords in their
original case to prevent encoding from becoming corrupted.
I created a patch that simply adds a new method to fetch flags, that
hopefully has no impact on the existing code. The constant I added for
flags with their original case is currently 999 since I don't know if
you're simply counting up or if the values of the constants have a
system.
https://github.com/horde/Imap_Client/pull/35
Feedback is always welcome.