=sinister= Posted August 2, 2008 Posted August 2, 2008 I have this code:(Functions found here: http://www.autoitscript.com/forum/index.ph...38&hl=pop3)expandcollapse popup#include <array.au3> #include <_pop3.au3> ConsoleWrite(@AutoItVersion & @CRLF) ;~ See _pop3.au3 for a complete description of the pop3 functions ;~ Requires AU3 beta version 3.1.1.110 or newer. Global $MyPopServer = "mail.xxxxx.com" Global $MyLogin = "pop3testaccount@xxxxxxx.com" Global $MyPasswd = "xxxxxx" _pop3Connect($MyPopServer, $MyLogin, $MyPasswd) If @error Then MsgBox(0, "Error", "Unable to connect to " & $MyPopServer & @CR & @error) Exit Else ConsoleWrite("Connected to server pop3 " & $MyPopServer & @CR) EndIf Local $stat = _Pop3Stat() If Not @error Then ; _ArrayDisplay($stat, "Result of STAT COMMAND") MsgBox(0, "Test", $stat[1]) Else ConsoleWrite("Stat commande failed" & @CR) EndIf ;~ Local $list = _Pop3List() ;~ If Not @error Then ;~ _ArrayDisplay($list, "") ;~ Else ;~ ConsoleWrite("List commande failed" & @CR) ;~ EndIf ;~ Local $noop = _Pop3Noop() ;~ If Not @error Then ;~ ConsoleWrite($noop & @CR) ;~ Else ;~ ConsoleWrite("List commande failed" & @CR) ;~ EndIf ;~ Local $uidl = _Pop3Uidl() ;~ If Not @error Then ;~ _ArrayDisplay($uidl, "") ;~ Else ;~ ConsoleWrite("Uidl commande failed" & @CR) ;~ EndIf ;~ Local $top = _Pop3Top(1, 0) ;~ If Not @error Then ;~ ConsoleWrite(StringStripCR($top) & @CR) ;~ Else ;~ ConsoleWrite("top commande failed" & @CR) ;~ EndIf ;~ Local $retr = _Pop3Retr(1) ;~ If Not @error Then ;~ ConsoleWrite(StringStripCR($retr) & @CR) ;~ Else ;~ ConsoleWrite("Retr commande failed" & @CR) ;~ EndIf ;~ Local $dele = _Pop3Dele(1) ;~ If Not @error Then ;~ ConsoleWrite($dele & @CR) ;~ Else ;~ ConsoleWrite("Dele commande failed" & @CR) ;~ EndIf ConsoleWrite(_Pop3Quit() & @CR)It retrieve the number of emails in a pop3 account.However, it will not update when it is in a loop.
Moderators big_daddy Posted August 7, 2008 Moderators Posted August 7, 2008 Did you try breaking the connection between each loop?
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