Jump to content
UBot Underground

Checking email account (Gmail)


Recommended Posts

This is probably a stupid question that I already know the answer to, but I built a bot that I want to trigger from an email.  So I have to monitor my Gmail account for the email to trigger it.  Is there a better way than just running it as loop while 1=1 using IMAP connection?

Link to post
Share on other sites

I don't think there is a better way, although you could use "true" instead "1=1". :)

 

Also, you might want to use a delay at the end of the loop, so you don't check email every second.

Link to post
Share on other sites

Thanks for the help.  Unfortunately, it's something that's time sensitive, so I want to run it as soon as possible after the email hits.  I've kept it open, and it doesn't seem to be much of a drain since the email account stays empty most of the time.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...