Logo Search packages:      
Sourcecode: pwlib version File versions  Download package

PUnsignedArray PPOP3Client::GetMessageSizes (  )

Get an array of a integers representing the sizes of each of the messages in the mail box.

Array of integers representing the size of each message.

Definition at line 1063 of file inetmail.cxx.

References PString::AsInteger(), PInternetProtocol::ExecuteCommand(), PString::Find(), PString::Mid(), and PInternetProtocol::ReadLine().

  PUnsignedArray sizes;

  if (ExecuteCommand(LIST, "") > 0) {
    PString msgInfo;
    while (ReadLine(msgInfo) && isdigit(msgInfo[0]))
                  (unsigned)msgInfo.Mid(msgInfo.Find(' ')).AsInteger());

  return sizes;

Here is the call graph for this function:

Generated by  Doxygen 1.6.0   Back to index