[GH-ISSUE #60] Move/Rename/Create IMAP Folders #54

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

Originally created by @ulfgebhardt on GitHub (Apr 16, 2016).
Original GitHub issue: https://github.com/cypht-org/cypht/issues/60

Originally assigned to: @jasonmunro on GitHub.

First i have to say, i <3 your software.

What i would need to replace my email-program is the full imap folder functionality. There is a Tag-Issue aswell - depending how that will work out it might be sufficient aswell.

With the Folder Ability the Possibility to move Messages would be required aswell. If you consider implementing this, i would reccomend to start with this Feature.

If this Feature already exists i could not find it. Point me to it then pls.

Thanks in Advance Ulf

Originally created by @ulfgebhardt on GitHub (Apr 16, 2016). Original GitHub issue: https://github.com/cypht-org/cypht/issues/60 Originally assigned to: @jasonmunro on GitHub. First i have to say, i <3 your software. What i would need to replace my email-program is the full imap folder functionality. There is a Tag-Issue aswell - depending how that will work out it might be sufficient aswell. With the Folder Ability the Possibility to move Messages would be required aswell. If you consider implementing this, i would reccomend to start with this Feature. If this Feature already exists i could not find it. Point me to it then pls. Thanks in Advance Ulf
kerem 2026-02-25 21:34:00 +03:00
Author
Owner

@jasonmunro commented on GitHub (Apr 18, 2016):

Thanks for the kind words and feedback! I have started on the ability to move/copy. Don't have an ETA on when it will be done since there are a lot of considerations. For folder management, I think I will create a new module set called "imap_folders" that allows you to create/delete/rename folders. Thanks again for the feedback.

<!-- gh-comment-id:211604022 --> @jasonmunro commented on GitHub (Apr 18, 2016): Thanks for the kind words and feedback! I have started on the ability to move/copy. Don't have an ETA on when it will be done since there are a lot of considerations. For folder management, I think I will create a new module set called "imap_folders" that allows you to create/delete/rename folders. Thanks again for the feedback.
Author
Owner

@ulfgebhardt commented on GitHub (Apr 19, 2016):

<3 take your time! And if you need anything just say so please.

<!-- gh-comment-id:211735260 --> @ulfgebhardt commented on GitHub (Apr 19, 2016): <3 take your time! And if you need anything just say so please.
Author
Owner

@jasonmunro commented on GitHub (Apr 25, 2016):

The initial version of move/copy is in. A couple of things to note:

  • Move/copy buttons will appear next to the existing message controls once you select a message. They will be in a disabled state unless at least one of the selected messages is an IMAP message.
  • Move/copy only works with IMAP messages. If you are in a combined view and select any non-IMAP messages then click move or copy, they will be de-selected and a notice will appear stating so
  • Move/copy is disabled on mobile just to keep the UI clean. I will enable it at some point once I work out the layout issues.
  • I was able to use some javascript-fu to re-purpose the existing folder list navigation for the destination folder to move/copy to.
  • You can move/copy messages to other folders within the same IMAP account, or to a different account/folder. This was tricky, but works pretty slick so far!

When you get a chance to check it out let me know what you think!

<!-- gh-comment-id:214416425 --> @jasonmunro commented on GitHub (Apr 25, 2016): The initial version of move/copy is in. A couple of things to note: - Move/copy buttons will appear next to the existing message controls once you select a message. They will be in a disabled state unless at least one of the selected messages is an IMAP message. - Move/copy only works with IMAP messages. If you are in a combined view and select any non-IMAP messages then click move or copy, they will be de-selected and a notice will appear stating so - Move/copy is disabled on mobile just to keep the UI clean. I will enable it at some point once I work out the layout issues. - I was able to use some javascript-fu to re-purpose the existing folder list navigation for the destination folder to move/copy to. - You can move/copy messages to other folders within the same IMAP account, or to a different account/folder. This was tricky, but works pretty slick so far! When you get a chance to check it out let me know what you think!
Author
Owner

@ulfgebhardt commented on GitHub (May 7, 2016):

Hello,
i just pulled your latest master and deployed it onto the server. I reran the config generator and the new features apear when selecting an email in the list.

But using either Move or Copy results in
"Unable``to move/copy selected Messages".

How can i determin the Error? My Mailserver aint showing anything. The Mails are imap.

Thanks for the great work so far - that was real fast!

<!-- gh-comment-id:217596695 --> @ulfgebhardt commented on GitHub (May 7, 2016): Hello, i just pulled your latest master and deployed it onto the server. I reran the config generator and the new features apear when selecting an email in the list. But using either Move or Copy results in `"Unable``to move/copy selected Messages".` How can i determin the Error? My Mailserver aint showing anything. The Mails are imap. Thanks for the great work so far - that was real fast!
Author
Owner

@jasonmunro commented on GitHub (May 9, 2016):

Weird, maybe I broke something already! I will try to reproduce this today, and failing that, will add some debugging to the master branch so you can determine where the issue is. Have you tried both moving or copying to the same IMAP account and to a different account? Just curious if both fail.

Thanks for the follow up.

<!-- gh-comment-id:217917901 --> @jasonmunro commented on GitHub (May 9, 2016): Weird, maybe I broke something already! I will try to reproduce this today, and failing that, will add some debugging to the master branch so you can determine where the issue is. Have you tried both moving or copying to the same IMAP account and to a different account? Just curious if both fail. Thanks for the follow up.
Author
Owner

@ulfgebhardt commented on GitHub (May 9, 2016):

You are right!
Moving Messages between Mailboxes works - within Mailboxes fails tho.

I appriciate the work you do! One more request regarding this
For Useability Purposes, could you add Copy & Move operation to the Message-Operations

all headers | reply | reply-all | forward | attach | raw | flag | delete | move | copy

Greetings Ulf

<!-- gh-comment-id:217921873 --> @ulfgebhardt commented on GitHub (May 9, 2016): You are right! Moving Messages between Mailboxes works - within Mailboxes fails tho. I appriciate the work you do! One more request regarding this For Useability Purposes, could you add Copy & Move operation to the Message-Operations `all headers | reply | reply-all | forward | attach | raw | flag | delete | move | copy` Greetings Ulf
Author
Owner

@jasonmunro commented on GitHub (May 9, 2016):

After I wrote this I abstracted some bits out to make the code cleaner, and made some really stupid mistakes in the process :) Should be fixed in the following commit: github.com/jasonmunro/hm3@f7b5e13a5a

Great idea to add them to the message view page. I will try to get that added today. Should be able to re-use much of the existing logic (I hope!).

<!-- gh-comment-id:217924809 --> @jasonmunro commented on GitHub (May 9, 2016): After I wrote this I abstracted some bits out to make the code cleaner, and made some really stupid mistakes in the process :) Should be fixed in the following commit: https://github.com/jasonmunro/hm3/commit/f7b5e13a5a1288864c50e20b8de5b655094e1c87 Great idea to add them to the message view page. I will try to get that added today. Should be able to re-use much of the existing logic (I hope!).
Author
Owner

@jasonmunro commented on GitHub (May 9, 2016):

copy + move have been added to the message view. Thanks for the great idea! The only bit I don't like, is the way the redirect-after-move works. It's the same redirect that happens when deleting from the message page, and it doesn't maintain the notice about the delete/move success or failure. Working on something to clean that up in the next day or two, maybe a client side message forwarding mechanism.

<!-- gh-comment-id:218015554 --> @jasonmunro commented on GitHub (May 9, 2016): copy + move have been added to the message view. Thanks for the great idea! The only bit I don't like, is the way the redirect-after-move works. It's the same redirect that happens when deleting from the message page, and it doesn't maintain the notice about the delete/move success or failure. Working on something to clean that up in the next day or two, maybe a client side message forwarding mechanism.
Author
Owner

@jasonmunro commented on GitHub (May 11, 2016):

Fixed the notice issue after move + redirect. And wrapped up the first version of the imap_folders module set!

Pull the latest code, add "imap_folders" to your list of enabled modules, re-generate the config, and you should have a "folders" page in the settings section of the folder list. From here you can create/rename/delete folders in any of your IMAP accounts.

<!-- gh-comment-id:218466547 --> @jasonmunro commented on GitHub (May 11, 2016): Fixed the notice issue after move + redirect. And wrapped up the first version of the imap_folders module set! Pull the latest code, add "imap_folders" to your list of enabled modules, re-generate the config, and you should have a "folders" page in the settings section of the folder list. From here you can create/rename/delete folders in any of your IMAP accounts.
Author
Owner

@jasonmunro commented on GitHub (May 25, 2016):

closing this for now since it's "working for me" :) If you have issues please re-open ore create a new issue. Thanks!

<!-- gh-comment-id:221700856 --> @jasonmunro commented on GitHub (May 25, 2016): closing this for now since it's "working for me" :) If you have issues please re-open ore create a new issue. Thanks!
Author
Owner

@ulfgebhardt commented on GitHub (May 26, 2016):

Im sorry it took so long for me to answer.
I just updated to the latest version. All works fine as you described it.
Consider putting the "imap_folders" module in default config if u havent done so alrdy.

Thank you so much for this - this is all i needed! <3

<!-- gh-comment-id:221936210 --> @ulfgebhardt commented on GitHub (May 26, 2016): Im sorry it took so long for me to answer. I just updated to the latest version. All works fine as you described it. Consider putting the "imap_folders" module in default config if u havent done so alrdy. Thank you so much for this - this is all i needed! <3
Author
Owner

@jasonmunro commented on GitHub (May 26, 2016):

Just added the module to the default config, thanks for catching that. And thanks for the follow up, it's appreciated!

<!-- gh-comment-id:221937546 --> @jasonmunro commented on GitHub (May 26, 2016): Just added the module to the default config, thanks for catching that. And thanks for the follow up, it's appreciated!
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#54
No description provided.