Chilkat HOME .NET Core C# Android™ AutoIt C C# C++ Chilkat2-Python CkPython Classic ASP DataFlex Delphi ActiveX Delphi DLL Go Java Lianja Mono C# Node.js Objective-C PHP ActiveX PHP Extension Perl PowerBuilder PowerShell PureBasic Ruby SQL Server Swift 2 Swift 3,4,5... Tcl Unicode C Unicode C++ VB.NET VBScript Visual Basic 6.0 Visual FoxPro Xojo Plugin
(PowerBuilder) Retrieve UIDL's from POP3 ServerRetrieve a list of UIDLs from a POP3 server. A UIDL is an identifier consisting of 1 to 70 characters in the range 0x21 to 0x7E, which uniquely identifies a messages within a mailbox and persists across sessions.
integer li_rc oleobject loo_Mailman oleobject loo_Sa string ls_Uidl integer i integer li_NumUidls // This example requires the Chilkat API to have been previously unlocked. // See Global Unlock Sample for sample code. loo_Mailman = create oleobject // Use "Chilkat_9_5_0.MailMan" for versions of Chilkat < 10.0.0 li_rc = loo_Mailman.ConnectToNewObject("Chilkat.MailMan") if li_rc < 0 then destroy loo_Mailman MessageBox("Error","Connecting to COM object failed") return end if loo_Mailman.MailHost = "pop.example.com" loo_Mailman.PopUsername = "myLogin" loo_Mailman.PopPassword = "myPassword" loo_Mailman.MailPort = 995 loo_Mailman.PopSsl = 1 loo_Sa = loo_Mailman.GetUidls() if loo_Mailman.LastMethodSuccess = 0 then Write-Debug loo_Mailman.LastErrorText destroy loo_Mailman return end if // Download each email by UIDL. i = 0 li_NumUidls = loo_Sa.Count do while i < li_NumUidls ls_Uidl = loo_Sa.GetString(i) Write-Debug ls_Uidl i = i + 1 loop destroy loo_Sa destroy loo_Mailman |
© 2000-2024 Chilkat Software, Inc. All Rights Reserved.