This happens to me every now and then. It's caused by some variety of spam
that doesn't have the headers YAM expects. When it hits that mail it just
freezes.
I usually log into my e-mail account through telnet and manually delete the
message which is causing the problem.
...hope this helps.