Class Reference
IRIS for UNIX 2024.1.2
InterSystems: The power behind what matters   
Documentation  Search
  [USER] >  [%Net] >  [POP3]
Private  Storage   

class %Net.POP3 extends %Net.FetchMailProtocol

For information on using this class, see Sending and Receiving Email.

Implements %Net.FetchMailProtocol

Inventory

Parameters Properties Methods Queries Indices ForeignKeys Triggers
8 26


Summary

Properties
AttachDir Connected Debug IgnoreInvalidBase64Chars
SSLCheckServerIdentity SSLConfiguration StoreAttachToFile StoreInlineToFile
UseSTARTTLS port timeout

Methods
%AddToSaveSet %ClassIsLatestVersion %ClassName %ConstructClone
%DispatchClassMethod %DispatchGetModified %DispatchGetProperty %DispatchMethod
%DispatchSetModified %DispatchSetMultidimProperty %DispatchSetProperty %Extends
%GetParameter %IsA %IsModified %New
%NormalizeObject %ObjectModified %OnClose %OriginalNamespace
%PackageName %RemoveFromSaveSet %SerializeObject %SetModified
%ValidateObject Connect ConnectPort DeleteMessage
Fetch FetchFromStream FetchMessage FetchMessageHeaders
FetchMessageInfo GetAttachedEmail GetMailBoxStatus GetMessageUID
GetMessageUIDArray GetSizeOfMessages Ping QuitAndCommit
QuitAndRollback RollbackDeletes


Properties

• property IgnoreInvalidBase64Chars as %Boolean [ InitialExpression = 0 ];
If IgnoreInvalidBase64Chars is true, then unexpected characters will be ignored during base64 decoding. RFC 2045 is ambiguous about whether unexpected characters should be ignored or result in an error during base64 decoding. The default is false.
• property SSLCheckServerIdentity as %Boolean [ InitialExpression = 0 ];
When making an SSL connection check the server identity in the server certificate matches the name of the system we are connecting to. This defaults to being on and matches based on the rules layed out in section 3.1 of RFC 2818.
• property SSLConfiguration as %String;
The name of the activated TLS/SSL configuration to use for pop3s requests.
• property UseSTARTTLS as %Boolean;
If true then the STARTTLS extension to POP3 (RFC 2595) should be used to authenticate to the POP3 server on the normal POP3 port. The SSLConfiguration must be specified.
• property port as %Integer;
The port of the POP3 server, the default is 110 for plain text and 995 for SSL.
• property timeout as %Integer [ InitialExpression = 30 ];
The read timeout in seconds to use when communicating with the POP3 server

Methods

• method %OnClose() as %Status
Cleanup the temp global used to store the message.
• method Connect(PopServer As %String, UserName As %String, Password As %String = "", AccessToken As %String = "") as %Status

see %Net.FetchMailProtocol Connect

• method ConnectPort(PopServer As %String, PopPort As %Integer = 110, UserName As %String, Password As %String, AccessToken As %String = "") as %Status

see %Net.FetchMailProtocol Connect

• method DeleteMessage(MessageNumber As %Integer) as %Status

see %Net.FetchMailProtocol DeleteMessage

• method Fetch(MessageNumber As %Integer, ByRef MailMsg As %Net.MailMessage, Delete As %Boolean = 0, messageStream As %BinaryStream) as %Status

see %Net.FetchMailProtocol Fetch

• method FetchFromStream(messageStream As %BinaryStream, ByRef MailMsg As %Net.MailMessage) as %Status

see %Net.FetchMailProtocol FetchFromStream

• method FetchMessage(MessageNumber As %Integer, ByRef From As %String, ByRef To As %String, ByRef Date As %String, ByRef Subject As %String, ByRef MessageSize As %Integer, ByRef MsgHeaders As %ArrayOfDataTypes, ByRef MailMsg As %Net.MailMessage, Delete As %Boolean = 0) as %Status

see %Net.FetchMailProtocol FetchMessage

• method FetchMessageHeaders(MessageNumber As %Integer, ByRef MsgHeadersArray As %String) as %Status

see %Net.FetchMailProtocol FetchMessageHeaders

• method FetchMessageInfo(MessageNumber As %Integer, Lines As %Integer, ByRef From As %String, ByRef To As %String, ByRef Date As %String, ByRef Subject As %String, ByRef MessageSize As %Integer, ByRef MsgHeaders As %ArrayOfDataTypes, ByRef MessageText As %String) as %Status

This method retrieves a single message. MessageNumber must be a valid message number and the message must not be currently marked for deletion.

An upper bound is put on number of lines of message text retrieved by Lines.

The text of the retrieved message is returned in the MessageText argument as a %String.

FetchMessageInfo is typically used to get From, Date, and other header information without actually getting the message text. This allows one to filter out messages from parties one wishes to exclude or to zero in on messages one particularly wants. Since getting message text is something that can happen over a slow modem, this is a desirable feature.

• method GetAttachedEmail(msgpart As %Net.MailMessagePart, Output mailmsg As %Net.MailMessage) as %Status
Convert the text of an attached email (Content-Type: message/rfc822) to a %Net.mailMessage.
• method GetMailBoxStatus(ByRef NumberOfMessages As %Integer, ByRef NumberOfBytes As %Integer) as %Status

see %Net.FetchMailProtocol GetMailBoxStatus

• method GetMessageUID(MessageNumber As %Integer, ByRef UniqueID As %String) as %Status

see %Net.FetchMailProtocol GetMessageUID

• method GetMessageUIDArray(MessageNumber As %String = "", ByRef ListOfUniqueIDs As %ArrayOfDataTypes) as %Status

see %Net.FetchMailProtocol GetMessageUIDArray

• method GetSizeOfMessages(MessageNumber As %String = "", ByRef ListOfSizes As %ArrayOfDataTypes) as %Status

see %Net.FetchMailProtocol GetSizeOfMessages

• method Ping() as %Status

see %Net.FetchMailProtocol Ping

• method QuitAndCommit() as %Status

see %Net.FetchMailProtocol QuitAndCommit

• method QuitAndRollback() as %Status

see %Net.FetchMailProtocol QuitAndRollback

• method RollbackDeletes() as %Status

see %Net.FetchMailProtocol RollbackDeletes



Copyright (c) 2025 by InterSystems Corporation. Cambridge, Massachusetts, U.S.A. All rights reserved. Confidential property of InterSystems Corporation.