[GH-ISSUE #397] New User Experience (NUX) module should also set special folders #329

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

Originally created by @marclaporte on GitHub (May 5, 2020).
Original GitHub issue: https://github.com/cypht-org/cypht/issues/397

Originally assigned to: @jasonmunro on GitHub.

We have special folder support (Sent, Trash): https://github.com/jasonmunro/cypht/issues/128

And we have the "New User Experience" (NUX) module:
https://github.com/jasonmunro/cypht/tree/master/modules/nux
https://github.com/jasonmunro/cypht/blob/master/modules/nux/services.php

Most (all?) providers have a predictable name for special folders. Let's use that. And create the folder if it doesn't exists yet (which the ISP's webmail will do if we use it first)

This is somewhat related to https://github.com/jasonmunro/cypht/issues/380 in the sense that Cypht should warn about actions that will fail. A missing special folder leads to weirdness.

Thanks!

Originally created by @marclaporte on GitHub (May 5, 2020). Original GitHub issue: https://github.com/cypht-org/cypht/issues/397 Originally assigned to: @jasonmunro on GitHub. We have special folder support (Sent, Trash): https://github.com/jasonmunro/cypht/issues/128 And we have the "New User Experience" (NUX) module: https://github.com/jasonmunro/cypht/tree/master/modules/nux https://github.com/jasonmunro/cypht/blob/master/modules/nux/services.php Most (all?) providers have a predictable name for special folders. Let's use that. And create the folder if it doesn't exists yet (which the ISP's webmail will do if we use it first) This is somewhat related to https://github.com/jasonmunro/cypht/issues/380 in the sense that Cypht should warn about actions that will fail. A missing special folder leads to weirdness. Thanks!
kerem 2026-02-25 21:34:46 +03:00
Author
Owner

@dumblob commented on GitHub (May 5, 2020):

And create the folder if it doesn't exists yet (which the ISP's webmail will do if we use it first)

In that case we should have a really good fallback if the guess was wrong. Suggestions?

<!-- gh-comment-id:624174597 --> @dumblob commented on GitHub (May 5, 2020): >And create the folder if it doesn't exists yet (which the ISP's webmail will do if we use it first) In that case we should have a really good fallback if the guess was wrong. Suggestions?
Author
Owner

@jasonmunro commented on GitHub (May 5, 2020):

Guessing is going to be a bit hard I think. Localization throws an immediate obstacle into the mix. One option is to start with the more limited but fool proof method: Ask the IMAP server. Some IMAP servers support exposing "special" folders (sent/trash/drafts) via the protocol (pretty sure Gmail does) so that might be good place to start. Cypht has methods for this already in the IMAP lib.

EDIT: We could also make this interactive. Once you add a service, you could be prompted to accept the special folders assignments depending on what we can determine from the IMAP server either through scanning the existing folders or via the special folder IMAP response.

<!-- gh-comment-id:624279828 --> @jasonmunro commented on GitHub (May 5, 2020): Guessing is going to be a bit hard I think. Localization throws an immediate obstacle into the mix. One option is to start with the more limited but fool proof method: Ask the IMAP server. Some IMAP servers support exposing "special" folders (sent/trash/drafts) via the protocol (pretty sure Gmail does) so that might be good place to start. Cypht has methods for this already in the IMAP lib. EDIT: We could also make this interactive. Once you add a service, you could be prompted to accept the special folders assignments depending on what we can determine from the IMAP server either through scanning the existing folders or via the special folder IMAP response.
Author
Owner

@marclaporte commented on GitHub (Jun 25, 2020):

And for Spam folder as well: https://github.com/jasonmunro/cypht/issues/412

<!-- gh-comment-id:649154151 --> @marclaporte commented on GitHub (Jun 25, 2020): And for Spam folder as well: https://github.com/jasonmunro/cypht/issues/412
Author
Owner

@marclaporte commented on GitHub (Oct 16, 2020):

Related: https://github.com/roundcube/roundcubemail/issues/3565

<!-- gh-comment-id:710030842 --> @marclaporte commented on GitHub (Oct 16, 2020): Related: https://github.com/roundcube/roundcubemail/issues/3565
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#329
No description provided.