IPWorks OpenPGP 2020 Python Edition

Questions / Feedback?

retrieve Method

Retrieves a message specified by MessageNumber from the server.


def retrieve() -> None: ...


This method is used to retrieve a message specified by message_number from the server. It asks the mail_server to retrieve the message specified by message_number. The message headers will arrive in the on_header event, and the message text will arrive in the on_transfer event.

The max_lines property defines the number of lines retrieved.

Example (Connect and Retrieve Message)

POPControl.MailServer = "MyPOPServer"
POPControl.User = "username"
POPControl.Password = "password"

POPControl.MessageNumber = 1

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks OpenPGP 2020 Python Edition - Version 20.0 [Build 8161]