|
Pages: [1]
|
 |
|
Author
|
Topic: Time stands still (Read 229 times)
|
|
jmatro
|
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
|
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
|
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]
|
|
|
 |
News: 01-09-08 Alpha version of REBOL 3 has been released!
2287 Posts in 593 Topics by 3727 Members
Latest Member: Maximinioles
|