Search: 
Available in: S/MIME
SIMAP Component [IP*Works! S/MIME V8]

Properties   Methods   Events   Configuration Settings  

The SIMAP component is used to communicate with IMAP servers using the IMAP (Internet Message Access) protocol.

NOTE: What follows is a very short description of the component interfaces. For more information, please consult the help files that come with the respective package.

Remarks

The SIMAP component is the S/MIME enabled equivalent of the IP*Works! IMAP component. In addition to standard IMAP functions the SIMAP component can decrypt and/or verify message signatures. The methods and properties for decrypting, and verifying signatures are identical to those provided with the S/MIME component. When attempting to verify a signed message or when decrypting a message call the Decrypt, VerifySignature, or DecryptAndVerifySignature methods and the resulting text will be replaced in Message.

The SIMAP component implements a standard IMAP client as specified in RFC 1730 and RFC 2060.

The first step in using the component is specifying a MailServer, a User to connect as, and a Password to authenticate with. After that, one or more requests may be sent to the server via the component's methods. Results are retrieved through events and a number of key properties.

Normally, after connecting to the server a Mailbox is selected (or examined) using the ExamineMailbox method. After the Mailbox is selected, MessageCount and RecentMessageCount show the number of messages in the mailbox, and MailboxFlags show the flags pertaining to the mailbox.

A number of operations may be performed by the server in response to commands sent via the component's methods. The main arguments for most commands is the Mailbox property or the MessageSet property. The MessageSet property denotes either a single message, or a range of messages. Other arguments are specified through other properties such as SortCriteria, MessageFlags, etc.

Responses are received through events such as MessageInfo, MailboxList, and also reflected to properties such as MessageText, MessageSubject, etc.

The MessagePart event describes the MIME structure of retrieved messages. One MessagePart event is fired for every message part, giving information about the particular part. Later on, message parts may be retrieved separately through the FetchMessagePart method. This speeds up processing by avoiding the need to retrieve full messages from the server.

The PITrail event traces the interaction between the client and the server. It includes all exchanges except for transfers of messages, message parts, and message headers.

Property List


The following is the full list of the properties of the component with short descriptions. Click on the links for further details.

AuthMechanismThe authentication mechanism to be used when connecting to the mail server.
AutoDecodePartsDetermines whether to automatically decode message parts.
CertificateThe current selected certificate.
CommandCan be used to send additional commands directly to the server.
ConnectedShows whether the component is connected.
EndByteThe byte index of the position where the transfer should end.
FirewallA set of properties related to firewall access.
IdleThe current status of the component.
LastReplyThe last reply from the server.
LocalFileThe path to a local file for downloading the message body. If the file exists, it is overwritten (optional).
LocalHostThe name of the local host or user-assigned IP interface through which connections are initiated or accepted.
MailboxName of the mailbox selected on the server.
MailboxFlagsDefined flags in the selected mailbox.
MailboxListCollection of mailboxes listed by the server.
MailPortThe port of the IMAP server (default is 143).
MailServerThe name or address of the mail server (IMAP server).
MessageContentEncodingThe ContentEncoding of the selected message.
MessageContentTypeThe ContentType of the message.
MessageCountThe total number of messages on the Mailbox .
MessageDateThe time the message was created.
MessageDeliveryTimeThe time the message was delivered to the mail server.
MessageEncryptedWhether or not the current message is encrypted.
MessageFlagsContains the flags of the current message.
MessageFromThe address of the author of the message.
MessageHeadersCollection of RFC822-encoded headers of the message.
MessageHeadersStringString version of RFC822-encoded headers of the message.
MessageIdThe message id of the current message.
MessageInfoCollection of messages retrieved by FetchMessageInfo .
MessageInReplyToThe unique message ID of the message this one is in reply to.
MessageNetIdThe globally unique id of the message.
MessagePartsCollection of message parts collected by FetchMessageInfo .
MessageRecipientsCollection of recipients for the current message.
MessageReplyToEmail address(s) where replies to the message should be sent.
MessageSenderThe address of the sender of the message.
MessageSetThe set of messages to operate on.
MessageSignedWhether or not the current message is signed.
MessageSizeThe size of the selected message.
MessageSubjectThe subject of the message.
MessageTextThe body of the retrieved message
PasswordThe password used to authenticate to the MailServer .
PeekModeWhen set to True, the message Seen flag is not changed during reading.
RecentMessageCountNumber of new messages on the Mailbox .
SignerCertContains the certificate of the message signer.
SignerCertChainThe certificate chain of the signing certificate.
SigningAlgorithmTextual description of the signature hash algorithm.
SortCriteriaSort criteria to use for message retrieval operations.
StartByteThe byte index of the position where the transfer should start.
TimeoutA timeout for the component.
UIDModeIf true, permanent message id-s are used instead of the default temporary id-s.
UIDValidityThe UIDValidity parameter sent from the server in response to SelectMailbox command.
UserThe user name used to authenticate to the MailServer .

Method List


The following is the full list of the methods of the component with short descriptions. Click on the links for further details.

AddMessageFlagsAdd the specified flags to the messages specified by MessageSet .
AppendToMailboxAppends the message in MessageText to the mailbox specified by Mailbox .
CheckMailboxSends a 'CHECK' command to the server.
CloseMailboxRemove all messages marked with 'Deleted' flag from the currently selected mailbox and unselect mailbox.
ConfigSets or retrieves a configuration setting.
ConnectConnect to an IMAP server.
CopyToMailboxCopies the messages specified by MessageSet to the mailbox specified by Mailbox .
CreateMailboxCreate a new mailbox specified by Mailbox .
DecryptDecrypts the current Message .
DecryptAndVerifySignatureDecrypts and verifies the signature of the current Message .
DeleteFromMailboxMarks the messages specified by MessageSet as deleted.
DeleteMailboxDelete a mailbox specified by Mailbox .
DeleteMailboxACLDeletes mailbox access control rights for a specific user.
DisconnectDisconnect from an IMAP server.
DoEventsProcesses events from the internal message queue.
ExamineMailboxSelect a Mailbox (Read-only mode).
ExpungeMailboxRemove all messages marked with 'Deleted' flag from the currently selected mailbox.
FetchMessageHeadersGet the message headers of messages specified by the MessageSet property.
FetchMessageInfoGet information about messages specified by the MessageSet property.
FetchMessagePartGet the message part specified by PartId.
FetchMessageTextGet the message text of messages specified by the MessageSet property.
GetMailboxACLGets mailbox access control rights.
InterruptInterrupt the current method.
ListMailboxesList all mailboxes matching all criteria in the Mailbox property.
ListSubscribedMailboxesList all subscribed mailboxes matching all criteria in the Mailbox property.
LocalizeDateConverts a valid RFC 822 message date to local date and time.
MoveToMailboxMoves the messages specified by MessageSet to the mailbox specified by Mailbox .
NoopSends a 'NOOP' command to the server.
RenameMailboxChange the name of Mailbox to NewName .
ResetMessageFlagsReplace the flags of the messages specified by MessageSet with the flags specified by MessageFlags .
SearchMailboxSearch selected mailbox for specified text.
SelectMailboxSelect a Mailbox.
SetMailboxACLSets mailbox access control rights for a specific user.
SetMessageStreamSets the stream to which the message (or message part) downloaded from the server will be written.
SubscribeMailboxSubscribe to the mailbox specified by Mailbox .
UnsetMessageFlagsRemove the flags specified by MessageFlags from the messages specified by MessageSet .
UnsubscribeMailboxUnsubscribe from the mailbox specified by Mailbox .
VerifySignatureVerify the signature of the current Message .

Event List


The following is the full list of the events fired by the component with short descriptions. Click on the links for further details.

ConnectionStatusFired to indicate changes in connection state.
EndTransferFired when the message or the part data finishes transferring.
ErrorInformation about errors during data delivery.
HeaderFired every time a header line comes in.
MailboxACLFires for each set of access control rights returned by the server
MailboxListFired for each mailbox received through the ListMailboxes and ListSubscribedMailboxes methods.
MessageInfoFired with information for the message(s) retrieved by the server.
MessagePartFired for each message part when FetchMessageInfo is called.
PITrailTraces the commands sent to the mail server, and the respective replies.
StartTransferFired when the message or the part data starts transferring.
TransferFired while the message gets transferred from the MailServer .

Configuration Settings


The following is a list of configuration settings for the component with short descriptions. Click on the links for further details.

AlwaysReturnUIDsInstructs the server to return UIDs even if not in UIDMode.
AuthorizationIdentityThe value to use as the authorization identity when SASL authentication is used.
HeaderLimitInstructs component to save the amount of headers specified that are returned by the server after a Header event has been fired.
MailboxLimitInstructs component to save the amount of mailboxes specified that are returned by the server after a ListMailboxes call has been made.
MessageInfoLimitInstructs component to save the amount of messages specified that are returned by the server after a FetchMessageInfo call has been made.
MessagePartLimitInstructs component to save the amount of message parts specified that are returned by the server after a FetchMessageInfo call has been made.
AutoDecodeSubjectInstructs the component to automatically decode message subjects.
MaxLineLengthThe maximum amount of data to accumulate when no EOL is found.
FirewallListenerIf true, the component binds to a SOCKS firewall as a server (IPPort only).
CloseStreamAfterTransferIf true, the component will close the upload or download stream after the transfer.
TcpNoDelayWhether or not to delay when sending packets
InBufferSizeThe size in bytes of the incoming queue of the socket.
OutBufferSizeThe size in bytes of the outgoing queue of the socket.
AbsoluteTimeoutDetermines whether timeouts are inactivity timeouts or absolute timeouts.
FirewallDataUsed to send extra data to the firewall.
CodePageThe system code page used for Unicode to Multibyte translations (Windows/COM only).

| About | Privacy Policy | Terms of Use |
© Copyright 2008 /n software inc.