Post your doubts here

5 views
Skip to first unread message

DrunkenProgrammer

unread,
Nov 29, 2007, 12:26:00 AM11/29/07
to ContactsReader
It is place you can post anything about Contacts Reader.NET

manu...@gmail.com

unread,
Jan 22, 2008, 11:16:48 PM1/22/08
to ContactsReader
Thanks for this great set of libraries. I was trying to use AOL Mail,
but I found that the text parser isn't that effective for AOL - are
you guys working on the parser for AOL Contact list ?

Also, AOL has changed their part of URL from "/aol/" to "/aim/" -so
you may want to fix it; for its next update.

On Nov 29 2007, 12:26 am, DrunkenProgrammer

DrunkenProgrammer

unread,
Jan 23, 2008, 12:16:43 AM1/23/08
to ContactsReader
Hi,

Thanks for your feedback and suggestions. You are right the JSON
parsing is not good actually. I didn't check the URL things, thanks
for your notification.
If you already improved the code means why don't you share with us?
We expect every users turn into potential co-developers :)

Love zvasanth

Manoj Pillai

unread,
Jan 23, 2008, 12:53:16 AM1/23/08
to contact...@googlegroups.com
I am still working on the parsing the raw text.

How did you find out about this URL :
string strJSONUrlPost = "dojo.transport=xmlhttp&automatic=false&requests=[{\"hash\":\"\",\"action\":\"AutoCompleteContacts\"},{\"updateMsgCounts\":true,\"action\":\"GetScreenNames\"}]";

Do you think, you can limit the details to screename alone? Instead of bginging everything?

Thanks

Manoj          

DrunkenProgrammer

unread,
Jan 23, 2008, 1:59:23 AM1/23/08
to ContactsReader
Hi manoj,

Using fiddler, I found out those things. (Many http debugging tools
available in internet another good one is Charles) . If you not have
good exposure how to use fiddler, try the following URL:
http://www.ideabubbling.com/Articles.aspx

You exactly found the place where we need the improvement. I think,
the AOL uses the following request

dojo.transport=xmlhttp&automatic=false&requests=[{\"hash\":\"\",
\"action\":\"AutoCompleteContacts\"},{\"updateMsgCounts\":true,\"action
\":\"GetScreenNames\"}]

to get screen names and emails for auto fills (when we type the screen
name in TO, CC, BCC Text, the email will be auto suggestive text). I
used the screen name as name, but it is not good :(

Try Fiddler more carefully, with using Edit> "Find Sessions" .you can
find which session have particular email / name.

Hope this will help you

Love zvasanth


On Jan 22, 9:53 pm, "Manoj Pillai" <manu....@gmail.com> wrote:
> I am still working on the parsing the raw text.
>
> How did you find out about this URL :
> string strJSONUrlPost = "dojo.transport=xmlhttp&automatic=false&requests=
> [{\"hash\":\"\",\"action\":\"AutoCompleteContacts\"},{\"updateMsgCounts\":true,\"action\":\"GetScreenNames\"}]";
>
> Do you think, you can limit the details to screename alone? Instead of
> bginging everything?
>
> Thanks
>
> Manoj
>
> On Jan 23, 2008 12:16 AM, DrunkenProgrammer <drunkenprogram...@gmail.com>
> wrote:
>
>
>
>
>
> > Hi,
>
> > Thanks for your feedback and suggestions. You are right the JSON
> > parsing is not good actually. I didn't check the URL things, thanks
> > for your notification.
> > If you already improved the code means why don't you share with us?
> > We expect every users turn into potential co-developers :)
>
> > Love zvasanth
>
> > On Jan 22, 8:16 pm, "manu....@gmail.com" <manu....@gmail.com> wrote:
> > > Thanks for this great set of libraries. I was trying to use AOL Mail,
> > > but I found that the text parser isn't that effective for AOL - are
> > > you guys working on the parser for AOL Contact list ?
>
> > > Also, AOL has changed their part of URL from "/aol/" to "/aim/" -so
> > > you may want to fix it; for its next update.
>
> > > On Nov 29 2007, 12:26 am, DrunkenProgrammer
>
> > > <drunkenprogram...@gmail.com> wrote:
> > > > It is place you can post anything about Contacts Reader.NET
>
> --
> Warm Regards,
> Manoj Pillai.
> (Alwayz there for my FriendZ)

DrunkenProgrammer

unread,
Jan 23, 2008, 6:12:08 AM1/23/08
to ContactsReader
I want to clarify few things in my last post, when I got the auto-fill-
contact-list (first name, last name, nick name, phone, email), the
names also coming. There is one difference between AOL and other mail
clients. AOL doesn't provide an export option, that's why I used the
short way. But if you interest on getting the full details, then start
from parsing the print contacts option.

Love zvasanth


On Jan 22, 9:53 pm, "Manoj Pillai" <manu....@gmail.com> wrote:
> I am still working on the parsing the raw text.
>
> How did you find out about this URL :
> string strJSONUrlPost = "dojo.transport=xmlhttp&automatic=false&requests=
> [{\"hash\":\"\",\"action\":\"AutoCompleteContacts\"},{\"updateMsgCounts\":true,\"action\":\"GetScreenNames\"}]";
>
> Do you think, you can limit the details to screename alone? Instead of
> bginging everything?
>
> Thanks
>
> Manoj
>
> On Jan 23, 2008 12:16 AM, DrunkenProgrammer <drunkenprogram...@gmail.com>
> wrote:
>
>
>
>
>
> > Hi,
>
> > Thanks for your feedback and suggestions. You are right the JSON
> > parsing is not good actually. I didn't check the URL things, thanks
> > for your notification.
> > If you already improved the code means why don't you share with us?
> > We expect every users turn into potential co-developers :)
>
> > Love zvasanth
>
> > On Jan 22, 8:16 pm, "manu....@gmail.com" <manu....@gmail.com> wrote:
> > > Thanks for this great set of libraries. I was trying to use AOL Mail,
> > > but I found that the text parser isn't that effective for AOL - are
> > > you guys working on the parser for AOL Contact list ?
>
> > > Also, AOL has changed their part of URL from "/aol/" to "/aim/" -so
> > > you may want to fix it; for its next update.
>
> > > On Nov 29 2007, 12:26 am, DrunkenProgrammer
>
> > > <drunkenprogram...@gmail.com> wrote:
> > > > It is place you can post anything about Contacts Reader.NET
>

Manoj Pillai

unread,
Jan 23, 2008, 2:34:04 PM1/23/08
to contact...@googlegroups.com

What is the print contacts option ??? A different URL ? I havent got time to play with fiddler yet.

I am currently working on the parser for that file - which i believe will work fine for 99.99% of the case. I will post it - once i finish testing with it tonite.

DrunkenProgrammer

unread,
Jan 24, 2008, 2:53:32 AM1/24/08
to contact...@googlegroups.com
In yahoo, gmail and  all the email sites provide export option for contacts list.
but in AOL, it is missing intentionally, because they dont  want  any screen scrapping softwares simply export&save their users contacts lists.

instead of exporting option, AOL  provides the print option of contacts list, just you can look inside the contacts menu option.

zvasanth

Manoj Pillai

unread,
Jan 24, 2008, 8:43:23 AM1/24/08
to contact...@googlegroups.com
Here is the code that work as  a charm; no matter what AOL returns for each user ....

Note: In mailclient; AOL Case... i am using FullName instead of firstname + "" lastname

char c = '\u0002';
            string strRemoveCode = c.ToString();
            string strReadyToSplitJSON = strJSONContacts.Replace(strRemoveCode, "###");

            c = '\u0010';
            strRemoveCode = c.ToString();
            strReadyToSplitJSON = strReadyToSplitJSON.Replace(strRemoveCode, "#MyFName#");

            c = '\u0011';
            strRemoveCode = c.ToString();
            strReadyToSplitJSON = strReadyToSplitJSON.Replace(strRemoveCode, "#MyLName#");

            c = '\u0013';
            strRemoveCode = c.ToString();
            strReadyToSplitJSON = strReadyToSplitJSON.Replace(strRemoveCode, "#MyScreenName#");

            c = '\u0014';
            strRemoveCode = c.ToString();
            strReadyToSplitJSON = strReadyToSplitJSON.Replace(strRemoveCode, "#MyEmail#");

            c = '\u0016';
            strRemoveCode = c.ToString();
            strReadyToSplitJSON = strReadyToSplitJSON.Replace(strRemoveCode, "#MyPhone#");

            c = '\u001b';
            strRemoveCode = c.ToString();
            strReadyToSplitJSON = strReadyToSplitJSON.Replace(strRemoveCode, "#MyWorkPhone#");

            c = '\u0018';
            strRemoveCode = c.ToString();
            strReadyToSplitJSON = strReadyToSplitJSON.Replace(strRemoveCode, "#MyCellular#");

            c = '\u0001';
            strRemoveCode = "5" + c.ToString();
            strReadyToSplitJSON = strReadyToSplitJSON.Replace (strRemoveCode, "#MyStart#");

            strRemoveCode = " #";
            strReadyToSplitJSON = strReadyToSplitJSON.Replace(strRemoveCode, "#MyEnd#");

            c = '\u0015';
            strRemoveCode = c.ToString();
            strReadyToSplitJSON = strReadyToSplitJSON.Replace(strRemoveCode, ",");

            ArrayList alFirstName = Utility.GetRegExMatchCollectionRetVal ("#MyFName####(?<RetVal>.*?)####", strReadyToSplitJSON);
            ArrayList alLastName = Utility.GetRegExMatchCollectionRetVal("#MyLName####(?<RetVal>.*?)####", strReadyToSplitJSON);
            ArrayList alScreenName = Utility.GetRegExMatchCollectionRetVal("#MyScreenName####(?<RetVal>.*?)####", strReadyToSplitJSON);
            ArrayList alEmail = Utility.GetRegExMatchCollectionRetVal ("#MyEmail####(?<RetVal>.*?)####", strReadyToSplitJSON);
            ArrayList alPhone = Utility.GetRegExMatchCollectionRetVal("#MyPhone####(?<RetVal>.*?)####", strReadyToSplitJSON);

            dtContatct.Columns.Add("FullName");
            dtContatct.Columns.Add("Email");

            DataRow dr;
            int nRowsCount = alScreenName.Count;
            if (nRowsCount == 0)
            {
                boolIsOK = false;
                strError = Utility.ApplicationError;
                return;
            }

            for (int i = 0; i < nRowsCount; i++)
            {
                dr = dtContatct.NewRow();
                try
                {
                    dr[0] = alFirstName[i].ToString();
                    dr[0] += " " + alLastName[i].ToString();
                }
                catch (Exception ex)
                { }
                //dr[2] = alScreenName[i].ToString();
                string ScreenName = alScreenName[i].ToString();
                c = ' ';
                ScreenName = ScreenName.Replace(c.ToString(), String.Empty);
                if (ScreenName.EndsWith("@aol.com"))
                    dr[1] = alScreenName[i].ToString();
                else
                    dr[1] = alScreenName[i].ToString() + "@aol.com";
                //dr[4] = alPhone[i].ToString();
                dtContatct.Rows.Add (dr);

DrunkenProgrammer

unread,
Jan 24, 2008, 10:12:21 AM1/24/08
to contact...@googlegroups.com

Hey,

Thanks for your work. My code is bit raw, but your code is nice and clear.
Your code snippet updated to the library with the following comment
//Code Improvement by Manoj Pillai (manu...@gmail.com) on 24/01/2007                

 
Love zvasanth

Padchi

unread,
Jan 30, 2008, 11:34:56 AM1/30/08
to ContactsReader
Hi,

Contacts Reader .NET doesnt work for me. I have test whit 3 hotmail
accounts but i allways get "application error...". I have use the test
app.
Can someone help me?

Sorry for my english,
Timmie

Iamapes...@gmail.com

unread,
Feb 4, 2008, 3:31:54 AM2/4/08
to ContactsReader
Hi,

Try this link:
http://www.ideabubbling.com/TestDrive.aspx
read the description on the page

love zvasanth

Timmie Sarjanen

unread,
Feb 4, 2008, 11:35:13 AM2/4/08
to contact...@googlegroups.com
Hi,

It dosent work for me on http://www.ideabubbling.com/TestDrive.aspx
either whit my hotmail but it woks on the demo login?

/Timmie

DrunkenProgrammer

unread,
Feb 4, 2008, 1:29:06 PM2/4/08
to contact...@googlegroups.com
Hi,

I tested few of my ID's works fine.
But possibly this may happen to you, because
*This project is completely depending on the source sites.
*The source sites have different/variation-on  output based on the region/country/second level domain name.
*This may not work for few countries/regions/second level domain names.

can you create some hotmail id (create from your country also send  the user id & password) , i will test it , next update i will try to fix it.

thanks timmie

Timmie Sarjanen

unread,
Feb 4, 2008, 1:37:22 PM2/4/08
to contact...@googlegroups.com
Hi,

ID:
SweC...@hotmail.com
Password:
hejsan

It must be something wrong whit hotmails from sweden. I have tryied
about five accounts.
Sry for my english and thanks for the help.
/ Timmie

DrunkenProgrammer

unread,
Feb 4, 2008, 2:15:16 PM2/4/08
to contact...@googlegroups.com
Hi,

you are right, there is something different in hotmail created from Sweden
i will check it out and reply you back
one more thing, i never said "Sorry for my work" just kidding :)

vasanth
Reply all
Reply to author
Forward
0 new messages