Getting full detail of an email for a id

hi i am trying to get full detail of an email in gmail for getting feed for incoming mail we have to call url with request header then i have to put encoded username and pass word of account like this conn.setRequestProperty("Authorization", "Basic " + Base64.encode((username + ":" + password).getBytes()));

i am writing my code in java after calling this url i am getting user's email feed but i want to know about full details of a single email because summary element in feed is very short i want to get complete summary of an email i will get mail's id from this feed after getting id which url to call with what request headers or parameter for getting complete information about a particular email i am using clientlogin in this example. here is code snippet

URL url2=new URL("");

        HttpURLConnection conn=(HttpURLConnection)url2.openConnection();

      conn.setRequestProperty("Authorization", "Basic " + Base64.encode(("riteshmehandiratta1" + ":" + "shinderjeetji").getBytes()));


        BufferedReader reader = new BufferedReader(new InputStreamReader(conn.getInputStream()));

        String line;

        String contents = "";

        while ((line = reader.readLine()) != null) {

          contents += line;



for getting feeds .this example work properly. how to get an email detail?? please help...


The Gmail Inbox feed only returns a subset of the email data and it should only be used to receive new email alerts:

If you want full control over the inbox, you should use IMAP:

Need Your Help

Workflow for modifying large cython projects

python workflow scikit-learn virtualenv cython

I need to make some modifications to scikit-learn, including changes to the cython code.

Visual Studio 2015, compress codeblock to one-liner?

visual-studio coding-style visual-studio-2015

Is there any shortcut/command to compress an existing block of code to a single line in Visual Studio? I have version 2015.