[GH-ISSUE #465] Cypht doesn't detect my Drafts folder #373

Closed
opened 2026-02-25 21:34:52 +03:00 by kerem · 11 comments
Owner

Originally created by @neildarlow on GitHub (Apr 10, 2021).
Original GitHub issue: https://github.com/cypht-org/cypht/issues/465

Originally assigned to: @jasonmunro on GitHub.

🐛 Bugreport

RFC6154 describes a method for determining Special Folders assigned with Special Use flags.

I am using Dovecot and have set a folder Drafts with the Special Use flag of \Drafts. The Folder Settings page
doesn't display the ability to assign my Drafts folder although the code suggests it should.

Is it the case that the Drafts folder name is checked-for/set using a hard-coded value? I see it referred to in code as 'draft'.

Version & Environment

Rev: [1accf48] - master branch

OS: [archlinuxARM/PHP-8.0.3]

Steps to reproduce

  1. Navigate to Folder Settings page.
  2. Select IMAP server
  3. Note that the page doesn't display a means to assign the Drafts folder which does exist.
Originally created by @neildarlow on GitHub (Apr 10, 2021). Original GitHub issue: https://github.com/cypht-org/cypht/issues/465 Originally assigned to: @jasonmunro on GitHub. ## 🐛 Bugreport <!-- Describe your issue in detail. Include screenshots if needed. Give us as much information as possible. --> RFC6154 describes a method for determining Special Folders assigned with Special Use flags. I am using Dovecot and have set a folder **Drafts** with the Special Use flag of \Drafts. The Folder Settings page doesn't display the ability to assign my Drafts folder although the code suggests it should. Is it the case that the Drafts folder name is checked-for/set using a hard-coded value? I see it referred to in code as **'draft'**. ### Version & Environment <!-- Paste Git-Commit ID or Tag-Name here --> Rev: [1accf48] - master branch <!-- Specify your OS and OS Version here if the issue is (most likely) platform dependent. --> OS: [archlinuxARM/PHP-8.0.3] ### Steps to reproduce 1. Navigate to Folder Settings page. 2. Select IMAP server 3. Note that the page doesn't display a means to assign the **Drafts** folder which does exist.
kerem 2026-02-25 21:34:52 +03:00
Author
Owner

@henrique-borba commented on GitHub (Apr 12, 2021):

@neildarlow I'm solving the IMAP Draft support in https://github.com/jasonmunro/cypht/pull/464

It won't take long 🙂

<!-- gh-comment-id:818067158 --> @henrique-borba commented on GitHub (Apr 12, 2021): @neildarlow I'm solving the IMAP Draft support in https://github.com/jasonmunro/cypht/pull/464 It won't take long 🙂
Author
Owner

@neildarlow commented on GitHub (Apr 12, 2021):

@henrique-borba Thank you for this. I hope I can find out what's going on with JavaScript on my PHP-8.0.3 setup so I can test your fix.

<!-- gh-comment-id:818185410 --> @neildarlow commented on GitHub (Apr 12, 2021): @henrique-borba Thank you for this. I hope I can find out what's going on with JavaScript on my PHP-8.0.3 setup so I can test your fix.
Author
Owner

@henrique-borba commented on GitHub (Apr 12, 2021):

@henrique-borba Thank you for this. I hope I can find out what's going on with JavaScript on my PHP-8.0.3 setup so I can test your fix.

What's the problem with the Javascript? Please also tell me your browser and version.

You are more than welcome 😃

<!-- gh-comment-id:818287043 --> @henrique-borba commented on GitHub (Apr 12, 2021): > @henrique-borba Thank you for this. I hope I can find out what's going on with JavaScript on my PHP-8.0.3 setup so I can test your fix. What's the problem with the Javascript? Please also tell me your browser and version. You are more than welcome 😃
Author
Owner

@marclaporte commented on GitHub (Apr 13, 2021):

yay, we found one more tester for the upcoming draft feature :-)

<!-- gh-comment-id:818397296 --> @marclaporte commented on GitHub (Apr 13, 2021): yay, we found one more tester for the upcoming draft feature :-)
Author
Owner

@neildarlow commented on GitHub (Apr 13, 2021):

Tested. Partially working?

You can select the server and assign folders but they don't persist over logout and login. Nottifcation shows folder assigned.

That is, however, some progress.

<!-- gh-comment-id:818815044 --> @neildarlow commented on GitHub (Apr 13, 2021): Tested. Partially working? You can select the server and assign folders but they don't persist over logout and login. Nottifcation shows folder assigned. That is, however, some progress.
Author
Owner

@jasonmunro commented on GitHub (Apr 13, 2021):

@neildarlow nothing persists between logins unless you explicitly save your settings first. I just tested to make sure and it worked fine as long as I go to Settings -> Save.

<!-- gh-comment-id:818816702 --> @jasonmunro commented on GitHub (Apr 13, 2021): @neildarlow nothing persists between logins unless you explicitly save your settings first. I just tested to make sure and it worked fine as long as I go to Settings -> Save.
Author
Owner

@neildarlow commented on GitHub (Apr 13, 2021):

Doh, of course! Logout didn't prompt me to save though.

That was a really simple fix. ;-)

<!-- gh-comment-id:818817431 --> @neildarlow commented on GitHub (Apr 13, 2021): Doh, of course! Logout didn't prompt me to save though. That was a really simple fix. ;-)
Author
Owner

@jasonmunro commented on GitHub (Apr 13, 2021):

Good point it did not. Because of how that page works we need 1 full refresh to enable the prompt on logout. I will see if that can be improved :). Thanks for the report and feedback!

<!-- gh-comment-id:818819347 --> @jasonmunro commented on GitHub (Apr 13, 2021): Good point it did not. Because of how that page works we need 1 full refresh to enable the prompt on logout. I will see if that can be improved :). Thanks for the report and feedback!
Author
Owner

@marclaporte commented on GitHub (Apr 20, 2021):

@neildarlow Please test https://github.com/jasonmunro/cypht/pull/464

<!-- gh-comment-id:822912273 --> @marclaporte commented on GitHub (Apr 20, 2021): @neildarlow Please test https://github.com/jasonmunro/cypht/pull/464
Author
Owner

@henrique-borba commented on GitHub (May 10, 2021):

I think https://github.com/jasonmunro/cypht/pull/464 and https://github.com/jasonmunro/cypht/pull/474 solved this issue

<!-- gh-comment-id:837455643 --> @henrique-borba commented on GitHub (May 10, 2021): I think https://github.com/jasonmunro/cypht/pull/464 and https://github.com/jasonmunro/cypht/pull/474 solved this issue
Author
Owner

@neildarlow commented on GitHub (Jun 12, 2021):

I think we can close this issue as fixed. Special folders handling has been addressed.

<!-- gh-comment-id:860043379 --> @neildarlow commented on GitHub (Jun 12, 2021): I think we can close this issue as fixed. Special folders handling has been addressed.
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#373
No description provided.