Page 1 of 1

GmailCheck Source Code

Posted: Wed Oct 15, 2008 3:50 pm
by DevilDog
Hi everyone,
Some time ago I developed a program for my own use to check Gmail and see if I had unread email. I called it GmailCheck and I was able to get most of the code I needed right here at the forums.

Soon after I found out that Google had developed a very similar utility (which is still available) although I did not actually use it myself I believe it does basically the same thing.

I also began to run into some unexplained results in my program (bugs) which I simply did not have the time to fix. Ultimately, I abandoned it and it has been sitting on my laptop ever since.

I received a request from a forum user asking if I could help him with developing something similar. Rather than do that I figure others might benefit so I'm making the source code available with no string attached.

If you can use it great, just be aware that it's not fully debugged and that I will not really be able to help you figure out any problems you may run into with the code.

The only change I have made before releasing it is to change my email account in the code. Any place you see "emailaddress%40gmail.com" you will need to change to your email account. I believe the %40 is the "@" sign so just replace the "emailaddress" portion.

You can download the source GmailCheck_PB.zip
Image.
Devildog

Posted: Wed Oct 15, 2008 4:22 pm
by Pantcho!!
Thank you DevilDog!

that code will be usefull for using with secured connections.

thanks again.

Posted: Fri Oct 17, 2008 12:22 am
by Karbon
I'm not sure if you realize it but using any 3rd party software to interface with or automate any of Google's services is a violation of their terms of service.
5.3 You agree not to access (or attempt to access) any of the Services by any means other than through the interface that is provided by Google, unless you have been specifically allowed to do so in a separate agreement with Google. You specifically agree not to access (or attempt to access) any of the Services through any automated means (including use of scripts or web crawlers) and shall ensure that you comply with the instructions set out in any robots.txt file present on the Services.
http://www.google.com/accounts/TOS

Posted: Fri Oct 24, 2008 7:13 pm
by FloHimself
Karbon wrote:I'm not sure if you realize it but using any 3rd party software to interface with or automate any of Google's services is a violation of their terms of service.
This application seems to use the official atom feed provided by google. It doesn't seem to be an issue because this interface is meant to be used by applications.

Posted: Sat Nov 01, 2008 1:04 am
by utopiomania
Thanks!

Posted: Mon Nov 10, 2008 9:36 am
by Michael Vogel
Hmm,
just made a quick check, but got errors with 4.20 (Unsresolved _SYS_CheckProcedureStringBuffer) and 4.304b (StringExtension Lib missing) :cry:

What I have done? :oops:
What should I do ? :roll:

Re: GmailCheck Source Code

Posted: Wed Nov 12, 2008 7:04 am
by oledawg
DevilDog,

Thanks for letting us have your utility. I haven't done any BASIC since the mid-70s thru the 90s on minis, first with Basic-4 and later with Wang Basic.
There have been a lot of changes since those days and I have only dabbled a little with VB and that was also long ago.

I have been looking for sample code to become familiar with PureBasic and I appreciate having access to your source, I don't mind if it has kinks, I learn best in that environment.

By the way, that is a good looking dawg you have there and if my avatar displays after this post, you will have a look at mine, she goes by the name Puddin' Head.
.

Posted: Sun Nov 23, 2008 2:37 pm
by Michael Vogel
Michael Vogel wrote:Hmm,
just made a quick check, but got errors with 4.20 (Unsresolved _SYS_CheckProcedureStringBuffer) and 4.304b (StringExtension Lib missing) :cry:
Excuse me, does nobody else get these error messages?

Posted: Sun Nov 23, 2008 4:47 pm
by rsts
tried in response to your query, but the xml doesn't work in 4.3b4.

lemme see if I can fire up 4.2 - will let you know

cheers

tried 4.2 - I can't get past

File : W:\gmailCheck\gmailcheck.pb
Line : 218

MSXML3_HasChildNodes() is not a function, array, macro or linked list

sorry

Posted: Sun Nov 23, 2008 6:36 pm
by netmaestro
The code needs the xml library from PBOSL - Do you have that installed?

Posted: Mon Nov 24, 2008 12:08 am
by rsts
netmaestro wrote:The code needs the xml library from PBOSL - Do you have that installed?
Thanks, netmaestro. No I do not have it installed. I was only attempting to run it quickly to see if I could confirm Michael's problem.


cheers

Posted: Mon Nov 24, 2008 8:39 am
by Michael Vogel
Hmm,

I have the full PBOSL package installed, including the PBOSL_MSXML3 file. Maybe its because I use Purebasic in "portable mode" ?

I have to check that!

Michael

I GIVE UP - I've just made a new installation of 4.30ß4 on my notebook at work, copied all PBOSL files into its directories and tried to run the code...
...but I got the error that the StringExtension library is missing!

Posted: Mon Nov 24, 2008 9:09 am
by gnozal
Michael Vogel wrote:...but I got the error that the StringExtension library is missing!
This error may indicate your are using a not PB4.30 compliant userlibrary ?

Posted: Mon Nov 24, 2008 10:11 pm
by Michael Vogel
gnozal wrote:
Michael Vogel wrote:...but I got the error that the StringExtension library is missing!
This error may indicate your are using a not PB4.30 compliant userlibrary ?
Thanks gnozal, I'll download it once more - but I'm already tired, will do that tomorrow...

Posted: Sun Jan 11, 2009 3:07 pm
by Michael Vogel
Michael Vogel wrote:Thanks gnozal, I'll download it once more - but I'm already tired, will do that tomorrow...
Seems to be already the next day :roll:

In the meantime I've installed the final version of PB4.30, reinstalled the newest PBOSL but with no change.
Is anyone able to run the source code on 4.30 without problems?

Michael