extract message content