Author |
|
EricS Guest Group
Joined: 10 November 2003
Online Status: Online Posts: 262
|
Posted: 19 December 2003 at 8:15am | IP Logged
|
|
|
Can i download message in "preview" mode?
I mean downloading headers PLUS several (maybe 10) lines of body.
Thanks
|
Back to Top |
|
|
Alex AfterLogic Support
Joined: 19 November 2003
Online Status: Offline Posts: 2206
|
Posted: 19 December 2003 at 9:56am | IP Logged
|
|
|
RetrieveSingleMessageHeaders and RetrieveHeaders methods of POP3 object support optional parameter BodyLinesCount that specifies number of body lines to be downloaded together with headers.
The following VB code gets headers and 10 body lines for each message, and displays body text preview:
Code:
...
Set MsgsCollection = objPOP3.RetrieveHeaders(10)
If Not MsgsCollection Is Nothing Then
For Each Msg In MsgsCollection
MsgBox Msg.BodyText
Next
Else
MsgBox objPOP3.ErrDesc
End If
|
|
|
Edited by Alex on 19 December 2003 at 10:01am
|
Back to Top |
|
|