I thought this was a pretty good article about dealing with bastards at work. I've been in the "working with a jerk" situation quite a bit and I've found a lot of these techniques really do help, especially this one that they suggest:
"Get perspective. What you’re reading as a big personal insult in an email might not be the case at all. Ask a friend who will be honest with you what they think of the email you’re sending and receiving. Do they read the same negative tone from your co-worker? Do they think you’re being particularly biting when you don’t need to be? Try and see the situation from different eyes."
Of course you could also stay late and mess with their stuff, but that wouldn't be a real mature release would it?
Web Worker Daily: So Your Co-Worker Isn't Your Best Friend. Now What?