Press T and enter a pattern like:
~s foo
or:
~c bogus@example.com
After you've tagged the messages you want to operate on, press ; followed by an action (e.g. s some_folder).