Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Retrieveing email

Author
Message
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 20th Jun 2017 04:37
Does anyone have an example of a tier1 app retrieving email from an imap or pop server?
Thanks in advance
Markus
Valued Member
19
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 20th Jun 2017 07:18
imap is a very stupid thought-out protocol and not easy to implement.
pop3 i can provide source but not in agk language.
AGK (Steam) V2017.05.15 : Windows 10 Pro 64 Bit : AMD (17.4.4) Radeon R7 265 : Mac mini OS Sierra (10.12.2)
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 20th Jun 2017 07:22
Unfortunatly i really need to be able to do it with tier1.
Is it possible to do it with http requests or sockets?
Markus
Valued Member
19
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 20th Jun 2017 08:41
i think you should use sockets.
here some info from vb6.
it used winsock what is event driven, different from agk.
if you connect to a pop3 server to 110 port (unsecure) (my example was for intranet)
you can sent commands to it ,see SendData function. vbcrlf is char 13 and char 10
most of the commands answer with a status.

AGK (Steam) V2017.05.15 : Windows 10 Pro 64 Bit : AMD (17.4.4) Radeon R7 265 : Mac mini OS Sierra (10.12.2)
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 20th Jun 2017 10:38
Fantastic Markus. Much appreciated!
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 21st Jun 2017 00:34 Edited at: 21st Jun 2017 03:05
EDIT:
Ok so this is probably not possible in tier1
Markus
Valued Member
19
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 21st Jun 2017 12:04 Edited at: 21st Jun 2017 12:04
Quote: "Ok so this is probably not possible in tier1"

what/why ?
AGK (Steam) V2017.05.15 : Windows 10 Pro 64 Bit : AMD (17.4.4) Radeon R7 265 : Mac mini OS Sierra (10.12.2)
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 22nd Jun 2017 00:47
A. I require SSL for any level of security
B. I would require IMAP because emails would need to be synced across devices
nz0
AGK Developer
16
Years of Service
User Offline
Joined: 13th Jun 2007
Location: Cheshire,UK
Posted: 22nd Jun 2017 01:10
Would a plugin suffice? I can do this in Delphi no prob.
TBH, doing it from scratch would be a lot of work - you may need to handshake / negotiate authentications etc.
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 22nd Jun 2017 01:36
Thank you so much nz0. That is a very generous offer and i really appreciate it but i need it for android/ios.
nz0
AGK Developer
16
Years of Service
User Offline
Joined: 13th Jun 2007
Location: Cheshire,UK
Posted: 23rd Jun 2017 18:16
If you use sockets, then you would (should) consult the RFCs for IMAP / POP3 standards.

Looks like Markus's example has plenty to get you going if you wanted to do it from scratch.

Markus
Valued Member
19
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 23rd Jun 2017 20:37
ohh. seems you need a feature request for ssl sockets.
with imap i have little experience.
AGK (Steam) V2017.05.15 : Windows 10 Pro 64 Bit : AMD (17.4.4) Radeon R7 265 : Mac mini OS Sierra (10.12.2)
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 24th Jun 2017 00:50
Good idea! Thanks

Login to post a reply

Server time is: 2024-03-29 13:33:06
Your offset time is: 2024-03-29 13:33:06