Skip to content

Creating a subfolder with space in name from quickMove raises an error #512

Description

@frederikmoellers

Whenever I create a new subfolder from the QuickMove box, if that subfolder has spaces in its name, an error is raised:

QuickFolders.Util.moveMessages:TypeError: targetFolder is null

To reproduce:

  1. Select a message from the inbox
  2. QuickMove (I use the keyboard shortcut Shift-M)
  3. Type in Parent folder name with slash (e.g. "Notes/")
  4. Type in new folder name (e.g. "Test Folder", QuickMove box now reads "Notes/Test Folder")
  5. Select the "Create subfolder" suggestion.
  6. Press Enter

The target folder is created, but moving the message fails (as the error suggests). If I then launch QuickMove again and type the target folder (with spaces), it successfully moves the message.

I guess this is a minor error in how QuickMove calls moveMessages after creating the folder, as the regular move afterwards completes successfully. It's also not super critical, as the workaround is obvious and only requires a few more keystrokes. I just encountered it one too many times and thought I'd report it :)

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions