Search The ForumSearch   RegisterRegister  LoginLogin

MailBee POP3

 AfterLogic Forum : MailBee POP3
Subject Topic: Received date (from mail server) Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
iconbill
Valued Community Member
Valued Community Member


Joined: 07 March 2007
Location: Netherlands
Online Status: Offline
Posts: 76
Posted: 13 September 2007 at 7:05am | IP Logged Quote iconbill

Hello,

I need to known the date when a message has been received by the mail-server.

When I use the property '.DATE' I get the header 'DATE' and NOT the date from
the mail-server.

Example with the headers below:
When I read 'Message.Date' the result is => Thu, 13 Sep 2007 15:49:26 +0200

But when you take a good look at the header, you can see this message was received
by the mail server on: "Thu, 13 Sep 2007 15:48:57 +0200"

In my opinion this is the real received date.

Could you tell me how to read this date with Mailbee Object component?

Kind regards,

Marco Smeets

---------------EXAMPLE HEADER --------------------
Received: from ikwilhet.nl
        by mail.fakemailserver.com (Mail Server) with ESMTP id SWJ30357
        for <test@fakedomain.com>; Thu, 13 Sep 2007 15:48:57 +0200
Received: from localhost ([127.0.0.1])
        by ikwilhet.nl (VisNetic.MailServer.v8.3.5.0) with SMTP id SWK73326
        for <test@fakedomain.com>; Thu, 13 Sep 2007 15:49:26 +0200
Date: Thu, 13 Sep 2007 15:49:26 +0200
From: Marco etccccccccccccc
etcccccc
---------------EXAMPLE HEADER --------------------
Back to Top View iconbill's Profile Search for other posts by iconbill
 
Andrew
AfterLogic Support
AfterLogic Support


Joined: 28 April 2006
Location: United States
Online Status: Offline
Posts: 1189
Posted: 14 September 2007 at 6:34am | IP Logged Quote Andrew

If your mail server supports IMAP protocol, the most simple way is to use Envelope.Date property.

In case with POP3 protocol, you have to parse Message.Received property value manually because POP3 protocol doesn't allow getting the date when the message was received.


Best regards,
Andrew
Back to Top View Andrew's Profile Search for other posts by Andrew
 
iconbill
Valued Community Member
Valued Community Member


Joined: 07 March 2007
Location: Netherlands
Online Status: Offline
Posts: 76
Posted: 18 September 2007 at 12:58am | IP Logged Quote iconbill

Thank you Andrew,

with some tricks in ASP I could read the receive date from the last 'received' server!

Marco
Back to Top View iconbill's Profile Search for other posts by iconbill
 

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