Currently, you can not be signed into both Mail and Messenger with the same ID to chat. It’s something we’re working on and we hope to have it up soon!
In the meantime, you can simultaneously chat in Mail and IM in Messenger if you have two different IDs and are signed into each separately.
Ask Other Yahoo! Mail Users