cypht-org / cypht

Cypht: Lightweight Open Source webmail aggregator [PHP, JS]
http://cypht.org
GNU Lesser General Public License v2.1
977 stars 153 forks source link

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

Open ivanov17 opened 10 months ago

ivanov17 commented 10 months ago

🐛 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
marclaporte commented 10 months ago

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

ivanov17 commented 10 months ago

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.

marclaporte commented 10 months ago

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

@Yannick243 Please investigate.

Related commit: https://github.com/cypht-org/cypht/commit/ac3b9c283b8b8c5094f7362adacd8e0368c1c9d6

Yannick243 commented 10 months ago

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

marclaporte commented 4 months ago

@Yannick243 It has been 6 months

Yannick243 commented 4 months ago

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.

marclaporte commented 4 months ago

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.

Yannick243 commented 3 months ago

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

marclaporte commented 3 months ago

@ivanov17 Can you please test?

marclaporte commented 1 month ago

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