Rebol Talk Forum  |  Getting Started  |  Newbie Help  |  Topic: Time stands still
Pages: [1] Print
Author Topic: Time stands still  (Read 229 times)
jmatro
Newbie
*
Offline Offline

Posts: 7


View Profile
Time stands still
« on: June 13, 2005, 10:04:24 AM »

I'm using REBOL/Core 2.5.6.4.2 under Linux.

I'm running a script in the background over several days that occassionally sends me an email message, depending on the conditions that it finds.  I'm using the 'send' command with the header option.

When I receive the emails, the delivery time shown for the messages is not the actual time of sending.  Instead, every message has the delivery time set to the date/time that the script was started.  (Thus, in my email client, these new messages end up getting buried down among my old messages.)

Is there a way to get the delivery time set to the actual time of delivery?

Thanks.
Logged
CarlRead
Full Member
***
Offline Offline

Posts: 105


View Profile
Time stands still
« Reply #1 on: June 13, 2005, 10:52:59 PM »

Are you setting the date value in the header?  If not, I'd think all you'd need to do is add...

date: now

to the header, though I'm assuming there that SEND will convert the REBOL date format to email date fomat.  If not, this should fix it...

date: to-idate now

Hope that helps.
Logged

- Carl Read
Guest
Guest


Email
Time stands still
« Reply #2 on: June 14, 2005, 11:22:32 AM »

Thanks for your respose.

I think I've figured it out.

When using send/header, apparently the timestamp for the email message gets set when the header is defined, not when the send command is performed.

I was defining my header just once -- at the very top of the script.  Below that, the send commands were being performed repeatedly in a forever loop (with appropiate "wait"  commands in between).

Thus, the timestamp for each email was constant (i.e., the date/time that the header was defined).

Thanks for your solution ("to-idate now").  It works fine in the Date: field of the header.

JM
Logged
Pages: [1] Print 
Rebol Talk Forum  |  Getting Started  |  Newbie Help  |  Topic: Time stands still
Jump to:  

  
Quick Search...

Advanced search
  
Welcome, Guest. Please login or register.
Did you miss your activation email?
November 20, 2008, 10:38:02 PM
Username: Password: Session Length:
  

News: 01-09-08

Alpha version of REBOL 3 has been released!


  
2287 Posts in 593 Topics by 3727 Members
Latest Member: Maximinioles

  Rebol Talk Forum | Powered by SMF 1.0.9.
© 2001-2005, Lewis Media. All Rights Reserved.

RT design by Defiant Pc