Anyone know of a procmail recipe to change the date on incoming messages?
If the date is in the future by more than 24 hours - I'd like to just change it to the current date.
If the date is in the past by more than two weeks - I'd like to just change it to the current date.
I'd like to do it in procmail - if someone knows how. I've done some searching, still have some to do.
Found some stuff on extracting the date, but not on modifying it if necessary.
On Wed, 2005-12-21 at 20:54 -0800, Michael A. Peters wrote:
If the date is in the future by more than 24 hours - I'd like to just change it to the current date.
If the date is in the past by more than two weeks - I'd like to just change it to the current date.
Bear in mind that you'd be eliminating a couple of indicators that such messages may be spam.
On Thu, 2005-12-22 at 21:51 +1030, Tim wrote:
On Wed, 2005-12-21 at 20:54 -0800, Michael A. Peters wrote:
If the date is in the future by more than 24 hours - I'd like to just change it to the current date.
If the date is in the past by more than two weeks - I'd like to just change it to the current date.
Bear in mind that you'd be eliminating a couple of indicators that such messages may be spam.
I could run it after I run spamassassin.
Michael A. Peters wrote:
Anyone know of a procmail recipe to change the date on incoming messages?
If the date is in the future by more than 24 hours - I'd like to just change it to the current date.
If the date is in the past by more than two weeks - I'd like to just change it to the current date.
I'd like to do it in procmail - if someone knows how. I've done some searching, still have some to do.
Found some stuff on extracting the date, but not on modifying it if necessary.
It seems to me that's a bit like altering the date on a cheque or old-fashioned paper missive.
You could always add your own X-Received-At: header and use that, but I'd leave the original date alone.
What say I say I wrote this letter at Wed, 28 Dec 2005 22:03:27 +0800, and you've tampered with the date in your copy, perhaps because it was delayed a week (it happens)?
The Received: headers give you a time trail. Leave Date: alone.
On Wed, 2005-12-28 at 08:05, John Summerfied wrote:
Michael A. Peters wrote:
Anyone know of a procmail recipe to change the date on incoming messages?
If the date is in the future by more than 24 hours - I'd like to just change it to the current date.
If the date is in the past by more than two weeks - I'd like to just change it to the current date.
I'd like to do it in procmail - if someone knows how. I've done some searching, still have some to do.
Found some stuff on extracting the date, but not on modifying it if necessary.
It seems to me that's a bit like altering the date on a cheque or old-fashioned paper missive.
You could always add your own X-Received-At: header and use that, but I'd leave the original date alone.
What say I say I wrote this letter at Wed, 28 Dec 2005 22:03:27 +0800, and you've tampered with the date in your copy, perhaps because it was delayed a week (it happens)?
The Received: headers give you a time trail. Leave Date: alone.
I think what he is trying to do is make the MTA sort on 'Date' make new messages show up in the message list in the right place so you don't overlook them or push the current ones off the screen. Do some MTA's let you base this sort on the received timestamp instead of the date header which is often wrong?
On Wed, 2005-12-28 at 13:15, Les Mikesell wrote:
I think what he is trying to do is make the MTA sort on 'Date' make new messages show up in the message list in the right place so you don't overlook them or push the current ones off the screen. Do some MTA's let you base this sort on the received timestamp instead of the date header which is often wrong?
MTA's won't and probably should not sort message, MUA's should be able to sort on received time. Evolution allows this, I use it this way probably for the same reason the OP is trying to change the date.
As another poster wrote, changing the date on a message is not really a good idea. Sorting messages on date/time received should achieve what the user is trying to do.