java how to conect to gmail via imap behind a proxy like that (host,port,user,passord)

java how to connect to 'GMAIL' via 'IMAP' behind a proxy like that (host,port,user,password)....

props.setProperty("http.proxyHost", "http-proxy01.domain.com");   
props.setProperty("http.proxyPort", "88");
props.put("mail.imap.starttls.enable","true");
props.put("mail.imap.host", ImapServerName);
props.put("mail.imap.socketFactory.class", "javax.net.ssl.SSLSocketFactory");
props.put("mail.imap.socketFactory.fallback", "false");
props.put("mail.transport.protocol", "imaps");
props.put("mail.imap.auth", "true");
props.put("mail.imaps.port", "993");