If the economy as a whole is having problems and a company is at risk of lower earnings, the stock is clearly worth less. Over the longer term, if a company is able to get over those hurdles and achieve the earnings they desire, their value will again rise.
Would you argue that if a company tried to buy Citibank at $40/share that they were trying to take advantage of things? Its current price is $26/share but it was above $45 for the majority of the year. Citi, similar to Yahoo has had significant difficulties that reflect on the potential future earnings of the company. Therefore, these companies are likely fairly valued.
As a result, the Yahoo line that they are "massively undervalued" rings false to me. They have turned down a tremendous premium over their value...Unless they have other courses of action to raise their earnings significantly or they have other offers. My best guess is they are just negotiating and trying to get Microsoft to offer a few more $/share.