I accidentally replied to my original post and not to this one, so you can read that reply for answers. Sorry about that!
I'd additionally note that you can use the agent to fetch mail in the background by invoking emacs in batch mode. It's suboptimal, but it does work.