Login  
Search All Forums
Dart Home | PowerTCP Mail for .NET | Custom Development Reply | PowerTCP Mail for .NET Topics | Forums   
AuthorForum: PowerTCP Mail for .NET
Topic: Way to read partial message body
gkohli

From: Canada
Posts: 13
Member Since: 10/08/15
posted September 8, 2016 10:15 AM

Hi is there any way to read partial message body ,
as if i have a long message with lot of replies
I just want to read the top most reply in the thread.

Is there any way , as Message.HTML gives huge unnessearu HTML tags,
Any way to do it or read top 30 lines?
Nick B (Admin)

From: Utica, NY USA
Posts: 619
Member Since: 05/25/10

Extra Support Options
Custom Application Development

posted September 8, 2016 2:23 PM

Hello,

Pop may be used to download a specific number of body lines from the server (however, what content you will receive depends upon the format of the message sent by the client):
http://www.dart.com/help/ptmlnet/webframe.html#Dart.Mail~Dart.Mail.PopMessage~Get(Int32).html

But this functionality is not available in the IMAP protocol. The closest IMAP feature is to retrieve a specific message part (HTML, or plain text, or a single attachment, etc), but this does not support retrieving only a portion of the specific part:
http://www.dart.com/help/ptmlnet/webframe.html#Dart.Mail~Dart.Mail.ImapMessage~GetPart.html

Unfortunately, email protocols weren't designed to support the specific functionality you're requesting.
Reply | PowerTCP Mail for .NET Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX