MessageID Property
Contains the Message-ID of the message.
E.g. if Message-ID header looks like:
Message-ID: <14816287800.20040305185837@localhost>
then MessageID property returns "14816287800.20040305185837@localhost".
Note: Dont't confuse Message-ID (which is a string
taken from "Message-ID" message header) with UID
(which is unique number assigned to each message in IMAP4 mailbox).
Value Type: | String | |
Parameters: | None | |
Remarks: | This property is read-only |
Usage example:
' This sample displays Message-ID for the last message in Inbox Dim Mailer, Envelopes, Envelope 'Using visual basic to create object Set Mailer = CreateObject("MailBee.IMAP4") 'Using ASP to create object 'Set Mailer = Server.CreateObject("MailBee.IMAP4") 'In ASP use Response.Write instead of MsgBox Mailer.EnableLogging = True Mailer.LogFilePath = "C:\Temp\imap4_log.txt" Mailer.ClearLog Mailer.LicenseKey = "put your license key here" If Mailer.Connect("mailserver.com", 143, "MyName", "MyPassword") Then If Mailer.SelectMailbox("Inbox") Then Set Envelopes = Mailer.RetrieveEnvelopes(Mailer.MessageCount, Mailer.MessageCount, False) If Not Envelopes Is Nothing Then For Each Envelope In Envelopes MsgBox Envelope.MessageID Next End If End If Mailer.Disconnect End If
See Also:
Copyright © 2002-2024, AfterLogic Corporation. All rights reserved.