[GH-ISSUE #817] RFC 6154: IMAP LIST Extension for Special-Use Mailboxes (Was: IMAP server is not added to the auto-generated user profile) #487

Closed
opened 2026-02-25 21:35:09 +03:00 by kerem · 12 comments
Owner

Originally created by @ivanov17 on GitHub (Nov 2, 2023).
Original GitHub issue: https://github.com/cypht-org/cypht/issues/817

Originally assigned to: @Yannick243 on GitHub.

🐛 Bugreport

After logging into the Cypht interface using IMAP authentication, the IMAP server is not added to the automatically generated user profile. Accordingly, the username is not recognized and is not added to the address and reply fields:

Screen Shot 2023-11-02 at 21 24 43

At the same time, the IMAP server is added to the servers and saved correctly:

Screen Shot 2023-11-02 at 21 23 57

On the Compose page I see the message Please create a profile for saving sent messages:

Screen Shot 2023-11-02 at 21 25 55

Authentication is carried out using a full email address.

The same thing happens with both an empty default_email_domain parameter and a specified domain.

After manually updating the E-Mail Address and Reply-to fields and saving the profile, the IMAP server is added correctly.

Despite this, another problem arises: IMAP folders (Trash/Sent/Drafts) are not automatically recognized even though they exist on the server. Accordingly, I see the message Please configure a sent folder for this IMAP account on the Compose page.

Version & Environment

Rev: v1.4.0

OS: CentOS Stream 9 container

$ php --version
PHP 8.2.12 (cli) (built: Oct 24 2023 19:22:16) (NTS gcc x86_64)
Copyright (c) The PHP Group
Zend Engine v4.2.12, Copyright (c) Zend Technologies
    with Zend OPcache v8.2.12, Copyright (c), by Zend Technologies

Steps to reproduce

  1. Login to the Cypht interface using IMAP authentication and full email address
  2. Check the Profiles page
  3. Check the Servers page
  4. Check the Compose page
Originally created by @ivanov17 on GitHub (Nov 2, 2023). Original GitHub issue: https://github.com/cypht-org/cypht/issues/817 Originally assigned to: @Yannick243 on GitHub. ## 🐛 Bugreport <!-- Describe your issue in detail. Include screenshots if needed. Give us as much information as possible. --> After logging into the Cypht interface using IMAP authentication, the IMAP server is not added to the automatically generated user profile. Accordingly, the username is not recognized and is not added to the address and reply fields: ![Screen Shot 2023-11-02 at 21 24 43](https://github.com/cypht-org/cypht/assets/553855/74d09c3b-df5a-44d7-9ecb-ef804c5d40e1) At the same time, the IMAP server is added to the servers and saved correctly: ![Screen Shot 2023-11-02 at 21 23 57](https://github.com/cypht-org/cypht/assets/553855/6a785413-b76f-442f-a843-e6a08c0be043) On the `Compose` page I see the message `Please create a profile for saving sent messages`: ![Screen Shot 2023-11-02 at 21 25 55](https://github.com/cypht-org/cypht/assets/553855/65cb6024-95a2-48c8-acc7-1b0114622d8b) Authentication is carried out using a full email address. The same thing happens with both an empty `default_email_domain` parameter and a specified domain. After manually updating the `E-Mail Address` and `Reply-to` fields and saving the profile, the IMAP server is added correctly. Despite this, another problem arises: IMAP folders (`Trash`/`Sent`/`Drafts`) are not automatically recognized even though they exist on the server. Accordingly, I see the message `Please configure a sent folder for this IMAP account` on the `Compose` page. ### Version & Environment <!-- Paste Git-Commit ID or Tag-Name here --> Rev: `v1.4.0` <!-- Specify your OS and OS Version here if the issue is (most likely) platform dependent. --> OS: CentOS Stream 9 container ``` $ php --version PHP 8.2.12 (cli) (built: Oct 24 2023 19:22:16) (NTS gcc x86_64) Copyright (c) The PHP Group Zend Engine v4.2.12, Copyright (c) Zend Technologies with Zend OPcache v8.2.12, Copyright (c), by Zend Technologies ``` ### Steps to reproduce 1. Login to the Cypht interface using IMAP authentication and full email address 2. Check the `Profiles` page 3. Check the `Servers` page 4. Check the `Compose` page
kerem 2026-02-25 21:35:09 +03:00
Author
Owner

@marclaporte commented on GitHub (Nov 3, 2023):

Can you see if you can find a link to "folders"?

<!-- gh-comment-id:1791883065 --> @marclaporte commented on GitHub (Nov 3, 2023): Can you see if you can find a link to "folders"?
Author
Owner

@ivanov17 commented on GitHub (Nov 3, 2023):

I hope I understand the question correctly.

I can select the IMAP server on the Folders page:

Screen Shot 2023-11-03 at 12 56 48

After that I can see a list of options and select all the required IMAP folders:

Screen Shot 2023-11-03 at 12 59 52

I think my IMAP folders should already have all necessary special-use flags, since desktop clients (Claws Mail and Thunderbird) recognize their types correctly. Unfortunately Cypht doesn't do this, but I don't know if it has to do this or not.

<!-- gh-comment-id:1792134433 --> @ivanov17 commented on GitHub (Nov 3, 2023): I hope I understand the question correctly. I can select the IMAP server on the `Folders` page: ![Screen Shot 2023-11-03 at 12 56 48](https://github.com/cypht-org/cypht/assets/553855/d9847462-0624-497c-8f6a-a91391aec05d) After that I can see a list of options and select all the required IMAP folders: ![Screen Shot 2023-11-03 at 12 59 52](https://github.com/cypht-org/cypht/assets/553855/947c389a-da7f-4891-ac1c-081fd8f37ca0) I think my IMAP folders should already have all necessary special-use flags, since desktop clients (`Claws Mail` and `Thunderbird`) recognize their types correctly. Unfortunately Cypht doesn't do this, but I don't know if it has to do this or not.
Author
Owner

@marclaporte commented on GitHub (Nov 4, 2023):

Ok, I see https://www.rfc-editor.org/rfc/rfc6154.html

@Yannick243 Please investigate.

Related commit:
github.com/cypht-org/cypht@ac3b9c283b

<!-- gh-comment-id:1793498360 --> @marclaporte commented on GitHub (Nov 4, 2023): Ok, I see https://www.rfc-editor.org/rfc/rfc6154.html @Yannick243 Please investigate. Related commit: https://github.com/cypht-org/cypht/commit/ac3b9c283b8b8c5094f7362adacd8e0368c1c9d6
Author
Owner

@Yannick243 commented on GitHub (Nov 5, 2023):

Ok,
I am testing it, and I will provide feedback

<!-- gh-comment-id:1793811739 --> @Yannick243 commented on GitHub (Nov 5, 2023): Ok, I am testing it, and I will provide feedback
Author
Owner

@marclaporte commented on GitHub (May 6, 2024):

@Yannick243 It has been 6 months

<!-- gh-comment-id:2096612500 --> @marclaporte commented on GitHub (May 6, 2024): @Yannick243 It has been 6 months
Author
Owner

@Yannick243 commented on GitHub (May 6, 2024):

With the refactor of IMAP & SMTP server configuration here https://github.com/cypht-org/cypht/pull/855 , the issue has been fixed.
Credentials (imap server, smtp server, reply-to, etc) are being added to the auto-generated user profile automatically.

<!-- gh-comment-id:2096631808 --> @Yannick243 commented on GitHub (May 6, 2024): With the refactor of IMAP & SMTP server configuration here [https://github.com/cypht-org/cypht/pull/855](https://github.com/cypht-org/cypht/pull/855) , the issue has been fixed. Credentials (imap server, smtp server, reply-to, etc) are being added to the auto-generated user profile automatically.
Author
Owner

@marclaporte commented on GitHub (May 6, 2024):

Credentials (imap server, smtp server, reply-to, etc) are being added to the auto-generated user profile automatically.

This is great. So part of https://github.com/cypht-org/cypht/releases/tag/v2.0.0

But there is another part to this issue: "RFC 6154: IMAP LIST Extension for Special-Use Mailboxes".

We want Cypht to detect the folder type automatically like Claws and Thunderbird.

<!-- gh-comment-id:2096987737 --> @marclaporte commented on GitHub (May 6, 2024): > Credentials (imap server, smtp server, reply-to, etc) are being added to the auto-generated user profile automatically. This is great. So part of https://github.com/cypht-org/cypht/releases/tag/v2.0.0 But there is another part to this issue: "RFC 6154: IMAP LIST Extension for Special-Use Mailboxes". We want Cypht to detect the folder type automatically like Claws and Thunderbird.
Author
Owner

@Yannick243 commented on GitHub (May 27, 2024):

The fixes have been merged https://github.com/cypht-org/cypht/pull/1022

<!-- gh-comment-id:2133615416 --> @Yannick243 commented on GitHub (May 27, 2024): The fixes have been merged [https://github.com/cypht-org/cypht/pull/1022](https://github.com/cypht-org/cypht/pull/1022)
Author
Owner

@marclaporte commented on GitHub (Jun 12, 2024):

@ivanov17 Can you please test?

<!-- gh-comment-id:2163944076 --> @marclaporte commented on GitHub (Jun 12, 2024): @ivanov17 Can you please test?
Author
Owner

@marclaporte commented on GitHub (Aug 11, 2024):

@ivanov17 Please test Cypht 2.1.0 or above so we may close this issue.

<!-- gh-comment-id:2282850909 --> @marclaporte commented on GitHub (Aug 11, 2024): @ivanov17 Please test Cypht 2.1.0 or above so we may close this issue.
Author
Owner

@marclaporte commented on GitHub (Sep 28, 2024):

@ivanov17 Cypht 2.4.0 is out: https://github.com/cypht-org/cypht/releases/tag/v2.4.0

<!-- gh-comment-id:2380398587 --> @marclaporte commented on GitHub (Sep 28, 2024): @ivanov17 Cypht 2.4.0 is out: https://github.com/cypht-org/cypht/releases/tag/v2.4.0
Author
Owner

@marclaporte commented on GitHub (Aug 20, 2025):

@ivanov17 It has been over a year that I asked you to test and confirm all is well. I will close this as done. Please re-open if issue persists.

<!-- gh-comment-id:3206107186 --> @marclaporte commented on GitHub (Aug 20, 2025): @ivanov17 It has been over a year that I asked you to test and confirm all is well. I will close this as done. Please re-open if issue persists.
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#487
No description provided.