Probably the best thing to do is ditch Ymail. Gmail will let you view the full site from Opera Mini. You'll have access to all your folders. Ypou'll also get free POP and IMAP access.
There is no user agent string in Opera Mini that can be modified by us.