Is It possible for normal Gmail Account

On Thu, Mar 26, 2009 at 8:11 PM, David Cifuentes <
[email protected]> wrote:

>
> Hi,
>
> I've written a small application that does exacltly that (for the
> whole domain). It's based on the shipped examples that are part of
> gdata-samples-* distribution.
>
> Hope it helps,
>
>
> import java.util.Iterator;
>
> import com.google.gdata.data.appsforyourdomain.provisioning.UserEntry;
> import com.google.gdata.data.appsforyourdomain.provisioning.UserFeed;
>
>
> public class ConfiguracionMasivaIMAP {
>
>        /**
>         * @param args
>         */
>        public static void main(String[] args) throws Exception {
>                String dominio = "domain";
>                String admin = "admin";
>                String password = "password";
>                String usuarioPagina = "";
>                AppsForYourDomainClient clienteApps = new
> AppsForYourDomainClient
> (admin + "@" + dominio, password, dominio);
>                GmailSettings clienteEmailSettings = new
> GmailSettings("Eforcers-
> IMAPConf-1", dominio, admin, password);
>
>                //Obtener el listado paginado de usuarios
>        UserFeed feedUsuarios = clienteApps.retrievePageOfUsers
> (usuarioPagina);
>        while (feedUsuarios.getEntries().size() > 0) {
>            Iterator<UserEntry> usersIterator =
>                    feedUsuarios.getEntries().iterator();
>            //Recorre el feed de usuarios
>            while (usersIterator.hasNext()) {
>                UserEntry usuario = usersIterator.next();
>                String nombreUsuario = usuario.getLogin().getUserName
> ();
>
>                clienteEmailSettings.changeImap(nombreUsuario, true);
>
>                if (!usersIterator.hasNext()) {
>                    usuarioPagina = nombreUsuario + "|";
>                }
>            }
>            //Avance obtengo la pagina siguiente de usuarios
>            feedUsuarios = clienteApps.retrievePageOfUsers
> (usuarioPagina);
>         }
>
>        }
>
> }
>
>
>
> On Mar 25, 4:14 am, Vishawjeet <[email protected]> wrote:
> > Dear Friends,
> >                         How I can Enable IMAP Using JAVA Lib. Anyone
> > has idea regarding this
> >
>


-- 

Regards:
================
Vishawjeet Saini
Khushii IT Solution,
Gurgaon.
Mobile No: 09891821776
Office: 0124-4251249


================================
To REACH me sms @ 5676775 the following message :
email vishu <your message>
================================
Ask me how to register your name for this cool service :)

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Apps APIs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-apps-apis?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to