ReadAllEmailHeadersWithAttach method: MCFGetMail class
Syntax
ReadAllEmailHeadersWithAttach(user, password, server, node)
Description
Use ReadAllEmailHeadersWithAttach to read the headers of all of the emails and a list of associated attachments that are currently stored on the mail server for a particular email account. The details about the emails are returned in the level zero rowset. The actual emails and any associated attachments are not returned.
Use this method as a screening method to determine whether to store an email in your PeopleSoft system. For example, if you determine that an email is junk mail, you could delete it from your mail server. After you determine the allowable email through header information, you can retrieve the physical email and attachments of the allowable emails.
Parameters
| Parameter | Description |
|---|---|
|
user |
The user name on the mail server, such as “support” or “john_doe”. |
|
password |
The password associated with the specified user name. |
|
server |
The name of the mail server handling the specified user account. |
|
node |
The Integration Broker node on which the request runs. |
Note:
If the value of any of these parameters is null, the method uses default values stored on the specified node. If the node is not specified, Integration Broker returns an error.
Returns
This method returns rowsets containing email headers.
Example
import PT_MCF_MAIL:*;
Local MCFGetMail &gm;
Local Rowset &emails_rs;
&emails_rs = &gm.ReadAllEmailHeadersWithAttach(&username, &passwd, &mailserver
&node);