mailsocket.countmessages (which is run if (mailsocket.isConnected = true) Is not picking up new
messages
Here is my forum post
Ok so… I have a program where I’m just trying to skim the paypal transaction ID’s from incoming payment notifications … I’m able to do this as well as parse the information successfully and store it in a text file. So in total I have 3 questions The first one is crucial… the last 2 questions are what I’m going to refer as, as bonus questions.
The point of this program I’m making is to run continously to catch incoming emails … so I have a timer running that is set to multiple mode… and runs every 30,000 ms… or 30 seconds… In the timer… the first thing it checks for is the condition (mailsocket.isconnected) If that is true… (using mailsocket as a pop3securesocket…) then the idea is to simply countmessages which should fire off the rest of the event handlers in the mail socket… I would think ?
I took this from the incoming mail demo program… which @PaulLefvebre kindly adjusted for me to enable secure connection…
Anyways… my predicament is this… simply running mailsocket.countmessages will not pick up any new messages
I try sending new messages while its connected and it runs, but no new messages appear.
Now: If I close the program and reopen it… voila… new message(s) will appear! So then I thought I know! I’ll disconnect from server and disconnect the socket and then reconnect… Nope this throws an error upon reconnection… Sigh…
Question 2: Is there an easy way to use ssh from within xojo to upload a file to a server (overwriting another file?)
Question 3: I forgot 3, this is good for now