info.mailtraq.com > Management > Script Functions A-Z > GetDirField() GetDirField()Returns the value of a field in the directory record for a given file. The field must be one of those described below, some of which are applicable to certain file types only. Also, some are only available to files held in the Mailtraq database. This function is the equivalent of the GetFieldOfDirectory() function.
value := GetDirField( path , filename , field )
- path
- The full path of the directory which may also be relative to the database directory
- filename
- The filename in the specified directory
- field
- The name of the field in filename to examine
Field
| Type
| Applicable Directories
| Description |
size
| Integer
| Any Directory
| The file size in bytes |
date
| DateTime
| Any Directory
| The file creation date |
subject
| String
| Any Indexed Directory
| The subject line from the message |
to
| String
| Any Indexed Directory
| The addresee of the message |
from
| String
| Any Indexed Directory
| The sender of the message |
serial
| String
| Any Indexed Directory
| The unique serial number of the file |
pop3_erased
| Boolean
| POP3 Collection
| Flag indicating if the message was erased |
pop3_delete
| Boolean
| POP3 Collection
| Flag indicating if the message is marked for deletion |
pop3_fetched
| Boolean
| POP3 Collection
| Flag indicating if the message was downloaded |
pop3_download
| Boolean
| POP3 Collection
| Flag indicating if the message is marked for download | |