TFolderProp

Data Structure

The TFolderProp structure defines the properties of mailbox folder object.

 

Delphi syntax:

  TFolderProp = packed record

    Name: TMString;

    Path: TMString;

    FolderFile: TMString;

    Comment: TMString;

    ID: dword;

    ParentID: dword;

    Index: dword;

    MailCount: dword;

    Size: int64;

  end;

 

C++ syntax:

 typedef struct _FOLDERPROP {

            TMString           Name;

            TMString           Path;

            TMString           FolderFile;

            TMString           Comment;

            DWORD            Id;

            DWORD            ParentId;

            DWORD            Index;

            DWORD            MailCount;

            LONGLONG       Size;

 } FOLDERPROP, *PFOLDERPROP;

 

C# syntax:

    [StructLayout(LayoutKind.Sequential, CharSet=CharSet.Ansi)]

    public struct FolderProp

    {

        [MarshalAs(UnmanagedType.ByValTStr, SizeConst = MConstants.MSTRING_LENGTH)]

        public string

            Name,

            Path,

            FolderFile,

            Comment;

        public int Id;

        public int ParentId;

        public int Index;

        public int MailCount;

        public Int64 Size;

    }

 

Members:

Name

  name of the folder. The name is showing in mail client application, like ‘Inbox’, ‘Outbox’, etc.

Path

 path to disc folder where the folder is located.

FolderFile

 path to disc file where the folder located.

Comment

 comment to the folder.

ID

 uniquely folder ID, used for identification the folder inside mailbox folders hierarchy.

ParentID

 parent folder ID. Root folder ID is 0.

Index

 index of the folder inside the mailbox folders list. Using with GetFolderCount.

MailCount

 count of the mail messages inside the folder.

Size

 folder size in bytes. For separate folders mailbox types.

 

See also:

GetFolderProp, OpenMailbox, GetFolderCount

 

Samples:

Abstract AIRMail SDK API call model

Delphi sample

 

 

 

 

 

© AIRMail SDK Team 2005-2008, please contact as