InternetMail.CombinePartial

Syntax:

CombinePartial(<ArrayOfMessages>)

Parameters:

<ArrayOfMessages> (required)

Type: Array.
Array, containing partial messages to combine.

Returned value:

Type: Array.
Array of objects of InternetMailMessage type.

Description:

Combines partial messages. If some parts are missing in the transferred array, then the message is not combined. Parts of several messages can be found in the transferred array. They will be returned in an array after combining. Each combined message will contain several values in the UID property; these values correspond to values of partial messages when combining.

Availability:

Thin client, server, thick client, external connection, Mobile application (client), Mobile application (server).

Example:

Profile = New InternetMailProfile;
FillInProfile(Profile);

Mail = New InternetMail;
Mail.Logon(Profile);

Array = Mail.Get(False);

ArrP = New Array;
For 
Cn = 0 To Array.Count() - 1 Do

    If 
Array[Cn].Partial Then

        ArrP.Add(Array[Cn]);

    EndIf
;

EndDo
;

News = Mail.CombinePartial(ArrP);
Message(" **************************************** ");
For 
Idn = 0 To News.Count() - 1 Do

    For 
Each UID In News[Idn].UID Do
        Message("UID " + String(Idn) + ": " + UID);
    EndDo
;

EndDo
;

Mail.Logoff();

See also:

InternetMailMessage, property Partial

    

1C:Enterprise Developer's Community