GmailCheck Source Code

Developed or developing a new product in PureBasic? Tell the world about it.
DevilDog
Enthusiast
Enthusiast
Posts: 210
Joined: Thu Aug 04, 2005 9:32 pm
Location: Houston, Tx.

GmailCheck Source Code

Post 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
When all is said and done, more is said than done.
Pantcho!!
Enthusiast
Enthusiast
Posts: 538
Joined: Tue Feb 24, 2004 3:43 am
Location: Israel
Contact:

Post by Pantcho!! »

Thank you DevilDog!

that code will be usefull for using with secured connections.

thanks again.
Karbon
PureBasic Expert
PureBasic Expert
Posts: 2010
Joined: Mon Jun 02, 2003 1:42 am
Location: Ashland, KY
Contact:

Post 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
-Mitchell
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net
FloHimself
Enthusiast
Enthusiast
Posts: 229
Joined: Wed May 14, 2003 3:38 pm
Location: Lüneburg - Germany

Post 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.
My favorite numbers: 09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0
User avatar
utopiomania
Addict
Addict
Posts: 1655
Joined: Tue May 10, 2005 10:00 pm
Location: Norway

Post by utopiomania »

Thanks!
User avatar
Michael Vogel
Addict
Addict
Posts: 2797
Joined: Thu Feb 09, 2006 11:27 pm
Contact:

Post 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:
Last edited by Michael Vogel on Wed Nov 12, 2008 11:51 am, edited 1 time in total.
oledawg
New User
New User
Posts: 1
Joined: Tue Nov 11, 2008 3:31 am
Location: Texas

Re: GmailCheck Source Code

Post 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.
.
User avatar
Michael Vogel
Addict
Addict
Posts: 2797
Joined: Thu Feb 09, 2006 11:27 pm
Contact:

Post 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?
rsts
Addict
Addict
Posts: 2736
Joined: Wed Aug 24, 2005 8:39 am
Location: Southwest OH - USA

Post 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
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Post by netmaestro »

The code needs the xml library from PBOSL - Do you have that installed?
BERESHEIT
rsts
Addict
Addict
Posts: 2736
Joined: Wed Aug 24, 2005 8:39 am
Location: Southwest OH - USA

Post 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
User avatar
Michael Vogel
Addict
Addict
Posts: 2797
Joined: Thu Feb 09, 2006 11:27 pm
Contact:

Post 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!
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post 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 ?
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
User avatar
Michael Vogel
Addict
Addict
Posts: 2797
Joined: Thu Feb 09, 2006 11:27 pm
Contact:

Post 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...
User avatar
Michael Vogel
Addict
Addict
Posts: 2797
Joined: Thu Feb 09, 2006 11:27 pm
Contact:

Post 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
Post Reply