internal void DetectBaseUrl()
{
string domain = null;
string match = Regex.Match(_gmailClient.Username, ".+@(.+)").Groups[1].Value;
if ((match != String.Empty) && !(new string[] { "gmail.com", "googlemail.com", "googlemail.co.uk" }.Contains(match)))
domain = match;
_baseUrl = "http://mail.google.com" + (domain != null ? "/a/" + domain : null);
}