you could do this for multiple messages at a time by Command-clicking all the messages you want to move.

Mail for Mac tip: Quickly move messages to a folder with a keyboard shortcut| Finer Things In Tech