Search The ForumSearch   RegisterRegister  LoginLogin

MailBee POP3

 AfterLogic Forum : MailBee POP3
Subject Topic: Body preview? Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
Guests
Guest Group
Guest Group


Joined: 10 November 2003
Online Status: Online
Posts: 262
Posted: 19 December 2003 at 8:15am | IP Logged Quote Guests

Can i download message in "preview" mode?
I mean downloading headers PLUS several (maybe 10) lines of body.

Thanks
Back to Top View Guests's Profile Search for other posts by Guests
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 19 December 2003 at 9:56am | IP Logged Quote Alex

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 View Alex's Profile Search for other posts by Alex
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide