acidfear Posted February 6, 2007 Share Posted February 6, 2007 Is it possible with autoit, to check a email account using the mail/tcp/ip functions to give a response of 'new mail' & or ' 3 new messages'. Kind of like gmail notifier for firefox. Link to comment Share on other sites More sharing options...
/dev/null Posted February 6, 2007 Share Posted February 6, 2007 Is it possible with autoit, to check a email account using the mail/tcp/ip functions to give a response of 'new mail' & or ' 3 new messages'. Kind of like gmail notifier for firefox.yes, not easy to do. Maybe it's better to use an already exsiting tool for that... __________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf * Link to comment Share on other sites More sharing options...
acidfear Posted February 6, 2007 Author Share Posted February 6, 2007 Is it difficult in general, or only to make it work with firefox? I don't plan on using it with anything but as a self executable. Thanks for the response Link to comment Share on other sites More sharing options...
/dev/null Posted February 6, 2007 Share Posted February 6, 2007 Is it difficult in general, or only to make it work with firefox? I don't plan on using it with anything but as a self executable.Thanks for the responsefirefox? How is firefox involved in e-mail checking??? __________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf * Link to comment Share on other sites More sharing options...
McGod Posted February 6, 2007 Share Posted February 6, 2007 He used firefox as an example. Now you would need to learn POP protocol which I don't even know. Then you would need it to send you the e-mail data and count how many emails you recieved. [indent][center][u]Formerly Chip[/u][/center]~UDFs~[/indent][u]IRC.au3 - Allows you to connect to IRC ServersINetCon.au3 - Connects/Disconnects/Check Status of InternetHardware Key - Creates a unique hardware hashScriptComm - Allows you to communicate between scripts using WM_COPYDATA[/u][indent]~Programs~[/indent][indent]SimonAu3ForumsIRC Bot~Web Site~Web Autoit Example[/indent][indent][b][/b][/indent][u][/u] Link to comment Share on other sites More sharing options...
/dev/null Posted February 6, 2007 Share Posted February 6, 2007 He used firefox as an example.as an example for what? __________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf * Link to comment Share on other sites More sharing options...
acidfear Posted February 6, 2007 Author Share Posted February 6, 2007 (edited) I used the gmail notifier extension for firefox example to explain what I was talking about. I didn't know if you thought I meant making one in autoit to work with firefox, so I asked . Edited February 6, 2007 by acidfear Link to comment Share on other sites More sharing options...
McGod Posted February 6, 2007 Share Posted February 6, 2007 as an example for what? He wants to make a e-mail checker to see if he has any new emails on his POP3 email account. I just did some simple tests and it looks pretty easy. For one, you need to know a couple bits of informationYour POP3 server mine is pop8.sympatico.caYour POP3 UsernameYour POP3 PasswordThen you need to connect to your server with the port 110. So TCPStartup ()oÝ÷ Ù:,µªíÊ«L#¢yÞrب«¢+Ù±½°ÀÌØíͽ¬ôQ A ½¹¹Ð ÀÌØíÍÉÙɹµ°ÄÄÀ¤ To connect to your server. Now a couple POP3 commands. USER Username Will send them your username then you need to follow it with PASS Password Pretty basic so far. Now if you get a +OK as you should with sending all this information, your logged in. To find out how many emails you have you need to use the STAT command STAT You will then recieve something like +OK 1 755 Meaning You have 1 email and its size is 755 bytes. Not too hard is it? [indent][center][u]Formerly Chip[/u][/center]~UDFs~[/indent][u]IRC.au3 - Allows you to connect to IRC ServersINetCon.au3 - Connects/Disconnects/Check Status of InternetHardware Key - Creates a unique hardware hashScriptComm - Allows you to communicate between scripts using WM_COPYDATA[/u][indent]~Programs~[/indent][indent]SimonAu3ForumsIRC Bot~Web Site~Web Autoit Example[/indent][indent][b][/b][/indent][u][/u] Link to comment Share on other sites More sharing options...
acidfear Posted February 7, 2007 Author Share Posted February 7, 2007 Nice! Thanks chip. I'll use that and work on it. I'll see what I come up with. Sounds simple enough. Gmails pop is probably pop.gmail.com right? Link to comment Share on other sites More sharing options...
mattjs Posted March 6, 2007 Share Posted March 6, 2007 (edited) I have a pop email checker application written but I have a problem with 25 seconds of TCPTimeout delay --- thats right --- 25 seconds..See my post: http://www.autoitscript.com/forum/index.ph...mp;#entry313934Somehow I dont think anyone is goin to come up with an answer except with an external control that needs to installed/registered and paid for unless they let me in to the code to fix it with a TCP ConnectDelayed version that sets the socket & return value in a global variable/flag upon return..."Its off, its off, its off I go to the wonderful wizard of 'python'..."(pySystray + threads and hopefully can be compiled from what I have already done with my AutoIt Pop Email checker pseudo code...)Unfortunately AutoIt really uses a Windows 3.1 programming model. It doesn't have to have threads for my proposes but does need a non-blocking TCPConnect if not TCPIP: in general that would be enough. Otherwise serious network applications are out even though some guy here has written a http server in it but I think he wasted his time. And COM controls etc are a waste of time unless they are drop in provided from unlicensed code that doesn't need to be registered first. Someone like to write it for me?All it has to do is the equivalent of (if there were AutoIt threads):Global $socket = """Func DoConnect($serverip, serverport) $socket = TCPConnect($serverip, $serverport) Exit(Thread)EndFunc...;Call the DoConnect thread/object/COMObjectSomeObjectThreadOrServiceFunctionCall(DoConnect, $serverip, serverport);THIS SHOULD BE A TIMER ACTUALLY BUT YOU GET MY DRIFT...While $socket == """ or 0 say ;.. Do Our other precessing --- AND CONTINUE TO SERVUCE GUI/MENU REQUESTS ETC --- WHILE WAITING FOR SOCKET TO BE SET TO -n (some -@error) . OR +n ETC... ...WEndWhile you are at it you could make the whole TCP... UDFs take a nonblocking flag/and or error and returned data variable that gets set to a value different from the illegal value initially specified..Without this i will have to migrate my systray pop email widget to python...Regards,Matthew Edited March 6, 2007 by mattjs Link to comment Share on other sites More sharing options...
mattjs Posted March 6, 2007 Share Posted March 6, 2007 I could do this job in less time than it would take to do a COM control or port to python. Initially just a non blocking _TCPConnect() that would lay the architectural foundation then for a non-blocking suite of TCP... UDFs to be added later... With access to the TCPConnect() code of course... Send me a mail... Regards again, Matthew Link to comment Share on other sites More sharing options...
n9mfk9 Posted June 28, 2007 Share Posted June 28, 2007 Hi Chip, how would you did it if you were going thought proxy server like avg thanks Beau He wants to make a e-mail checker to see if he has any new emails on his POP3 email account. I just did some simple tests and it looks pretty easy. For one, you need to know a couple bits of informationYour POP3 server mine is pop8.sympatico.caYour POP3 UsernameYour POP3 PasswordThen you need to connect to your server with the port 110. So TCPStartup ()oÝ÷ Ù:,µªíÊ«L#¢yÞrب«¢+Ù±½°ÀÌØíͽ¬ôQ A ½¹¹Ð ÀÌØíÍÉÙɹµ°ÄÄÀ¤ To connect to your server. Now a couple POP3 commands. USER Username Will send them your username then you need to follow it with PASS Password Pretty basic so far. Now if you get a +OK as you should with sending all this information, your logged in. To find out how many emails you have you need to use the STAT command STAT You will then recieve something like +OK 1 755 Meaning You have 1 email and its size is 755 bytes. Not too hard is it? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now