POP3it_Adv_ConnectFile
- Description
This function opens a "connection" to either a file on your hard drive that contains one or more emails in the mbox format, an Apple Mail 2.x mailbox folder, or the Full Source of an email from a field in your database. After using this function, use POP3it_Adv_GoToMessage to set the current email, and then you can use the other Advanced functions for retrieving Headers, the Body, and Attachments from the email. When you are done, use the POP3it_Adv_Disconnect function to close the file. Note: You should make sure the other Email Client is closed before Connecting to one of its mailbox files.
- Return Type
- Text
- Format
- POP3it_Adv_ConnectFile ( PathOrFullSource ; AttachPath )
- Required Parameters
- PathOrFullSource
The Path to a Message File or the Full Source of a Message.
- PathOrFullSource
- Optional Parameters
- AttachPath
The Path to the folder to store Attachments. Specify "" to not extract Attachments. (Default is "".)
- AttachPath
- Related Items
- POP3it_Adv_Disconnect, POP3it_Adv_IsConnected, POP3it_CheckFile
- Examples
Example 1
Code:
POP3it_Adv_ConnectFile("~/Library/Mail/POP-me@pop.mydomain.com/INBOX.mbox")Result:
Connects to an Apple Mail 2.x Inbox folder.Example 2
Code:
POP3it_Adv_ConnectFile( Email::FullSource )Result:
Connects to the Full Source of an email stored in the "FullSource" field of the "Email" table.