[Tickets #15173] Add a method to Imap_Client that keeps the original flag case
noreply at bugs.horde.org
noreply at bugs.horde.org
Tue Oct 8 06:59:01 UTC 2024
DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.
Ticket URL: https://bugs.horde.org/ticket/15173
------------------------------------------------------------------------------
Ticket | 15173
Created By | frederik.guenther at iserv.eu
Summary | Add a method to Imap_Client that keeps the original
| flag case
Queue | Horde Framework Packages
Type | Enhancement
State | New
Priority | 1. Low
Milestone |
Patch | 1
Owners |
------------------------------------------------------------------------------
frederik.guenther at iserv.eu (2024-10-08 06:59) wrote:
According to RFC 9051 "Servers MAY permit the client to define new
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.
More information about the bugs
mailing list