ipurge to use -d as receive date and not sent date

Henrique de Moraes Holschuh hmh at debian.org
Tue Oct 14 10:48:32 EDT 2003


On Tue, 14 Oct 2003, Carsten Hoeger wrote:
> I recently sat down over a customer bug report and found out, that ipurge uses
> the sent date (which is what is in the Date: Header of a mail or the offset
> OFFSET_SENTDATE) to determine the age of a single message. The problem with

Eek, looks like a bug to me.  I certainly want it to use INTERNALDATE when I
am doing automated purges.

Rob? Ken?

> A short look at the source made me try to use OFFSET_INTERNALDATE (from
> imap/mailbox.h), which seems to do what I want, deleting mails which had been
> received n days ago.
> 
> Is that assumption right, or do I have to reckon some strange side effects?

Looks OK to me, but I am not that well versed on cyrus mailstore
internals... unlike cyrus master :)

-- 
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh




More information about the Info-cyrus mailing list