I spent some time looking into Alfred Workflows and created this one. Hope someone else can benefit or improve on it!
alfred-mail-sorter
Moves currently selected message in Mail.app to a folder selected via Alfred interface.
Usage
With a selected message in Mail:
- Press
⌃M
(default shortcut) or invoke Alfred and typesort
- Type the name of the folder (or part of it) until you see the desired folder selected
- Hit return/enter
How does it work
- Uses AppleScript to enumerate folder names for the selected account and feed a Script Filter on the Alfred Workflow;
- Selecting the desired folder will feed the next action with the name of such folder;
- A seccond AppleScript will use the name of the folder to select the corresponding “Move to…” item in menubar.