My suggestion would be to post your question in the »All Things Apple
forum since the problem is obviously in your IMac setup, not with the AT&T/Yahoo! email service itself.
My guess is that the devices that properly use the folders are accessing your email using IMAP, but you are using POP3 on the IMac.--
History does not long entrust the care of freedom to the weak or the timid.
-- Dwight D. Eisenhower