<div class="markdown">
<p>I’m very fond of a keyboard macro I have that deletes all messages from a given user. </p>
<pre><code>"d" = {
"f" = ( "selectWithFilter:", "from.address = '${from.address}'", "moveToMailbox:", "trash" );
};
</code></pre>
<p>It mirrors functionality I used to have with MailHub in Mail. <em>However</em>, MailHub had a nice option that if I deleted more than N messages at a time, it would send a Growl notification saying that N messages had been trashed. This was nice for those cases where you might have forgotten, for instance, that you’d saved a bunch of messages from that user in another folder. If the number looked too high, you could just undo and then take a more careful look. </p>
<p>Short of the addition of the ability to launch a piece of AppleScript or a Bundle with the current selection, I can’t think of any way to do this. But I wanted to put it out there as a suggestion. (Is it possible to do either of those things?) </p>
</div>