Jump to content

Search the Community

Showing results for tags 'imap thunderbird remote server'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General
    • Announcements and Site News
    • Administration
  • AutoIt v3
    • AutoIt Help and Support
    • AutoIt Technical Discussion
    • AutoIt Example Scripts
  • Scripting and Development
    • Developer General Discussion
    • Language Specific Discussion
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Categories

  • AutoIt Team
    • Beta
    • MVP
  • AutoIt
    • Automation
    • Databases and web connections
    • Data compression
    • Encryption and hash
    • Games
    • GUI Additions
    • Hardware
    • Information gathering
    • Internet protocol suite
    • Maths
    • Media
    • PDF
    • Security
    • Social Media and other Website API
    • Windows
  • Scripting and Development
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Member Title


Location


WWW


Interests

Found 1 result

  1. Hi friends, I'm trying to implement a script to read inbox of a IMAP thunderbird server to sort and process mails with some particular text in subject field. I'm working on it for many days and not able to make much progress. When I execute the script, I get connected to the server and server responds with the text: * OK The Microsoft Exchange IMAP4 service is ready. But the capability check always results in timeout. I have tried the the commands from telnet command line and the capability request worked with this response: * CAPABILITY IMAP4 IMAP4rev1 AUTH=PLAIN STARTTLS UIDPLUS CHILDREN IDLE NAMESPACE LITERAL+ 0 OK CAPABILITY completed. Please help. Am I missing anything in my AutoIT code? Thank you so much. #RequireAdmin Opt("TCPTimeout", 5000) ;5 seconds OnAutoItExitRegister ( "_OnExit" ) TCPStartup() Global $IMAPsocket = -1 ;IMAP Server Info Global $IMAPserver = InputBox("", "IMAP Server", "imap.server.com") Global $IMAPport = InputBox("", "IMAP Server Port Number", "143") ;User Info Global $UserName = InputBox("", "UserName", "UserName") Global $Password = InputBox("", "Password", "Password") _ConnectToServer($IMAPserver, $IMAPport) _CheckCapability() ;Connect to IMAP Server Func _ConnectToServer($IMAPserver, $IMAPport) TCPStartup() $IMAPsocket = TCPConnect(TCPNameToIP($IMAPserver), $IMAPport) If $IMAPsocket = -1 Then MsgBox(0, "Error", "Could Not Connect to server with error: " & @Error) Return EndIf $iTime = TimerInit () Do If TimerDiff ($iTime) > 15000 Then msgbox(0, "TCPConnect - Error", "TCPConnect - Timeout") Return EndIf $sRecv = TCPRecv($IMAPsocket, 64) If $sRecv <> "" Then Msgbox(0,"Response received from server for TCPConnect: ", $sRecv) ExitLoop ElseIf @error then msgbox(0,"TCPRecv - Error", "TCPreceive Error: ", @error) Return EndIf Until StringLeft($sRecv, 3) = "* OK" EndFunc ;=>IMAPConnectToServer ;Check capability Func _CheckCapability() $Ret = TCPSend($IMAPsocket, "0 capability") If @error Then MsgBox(0, "Error", "Could Not send capability check to server with error: " & @Error) Return EndIf $iTime = TimerInit () Do If TimerDiff ($iTime) > 15000 Then msgbox(0, "", "TCP receive capability - timeout") Return EndIf $sRecv = TCPRecv($IMAPsocket, 400) If $sRecv <> "" Then Msgbox(0,"Received Response for capability check", $sRecv) ExitLoop ElseIf @error then msgbox(0,"TCP capability check Error", @error) Return EndIf Until StringLeft($sRecv, 4) = "* CAP" EndFunc ;=>_CheckCapability ;Run when Program Ends Func _OnExit() If $IMAPsocket Then TCPCloseSocket($IMAPsocket) EndIf TCPShutdown() EndFunc ;==>endscript References: https://tools.ietf.org/html/rfc3501#page-24
×
×
  • Create New...