cyrus 2.3.8, internal dates not stored in message file time ?

Bron Gondwana brong at fastmail.fm
Thu Jun 21 20:53:14 EDT 2007


On Thu, Jun 21, 2007 at 09:07:07PM +0200, Nicolas KOWALSKI wrote:
> Hello,
> 
> I am testing a new cyrus 2.3.8 installation.
> 
> I have noticed that copying messages from one folder to another one
> does keep messages internal dates but does not set message files write
> time in the destination folder, as 2.2.12 does.
> 
> A quick grep in the sources reveals:
> 
> reconstruct.c:      /* Message file write time is good estimate of internaldate */
> 
> So, as I understand it, when reconstructing mailboxes, internal dates
> will be lost. It this intentional, or did I miss something in the
> docs/manual ?

http://cyrus.brong.fastmail.fm/ 

- in particular cyrus-receivedtime-2.3.8.diff
- and cyrus-syncmtime-2.3.8.diff

Will do a lot of what you're interested in here.  The receivedtime diff
actually does quite a lot more, including parsing the 'Received' headers
from the message and using them to set the internaldate.  Much tricky.

That said, we don't have a patch for the move case.  I'll test that and
see what it does with the receivedtime patch, because it's quite
possible that it's not actually setting the mtime.  If so, I suspect a
line in mailbox_copymove() might do the trick across the board...

(I'm on my laptop on a train right now and due to some filesystem
experimentation yesterday I managed to blow away my local copy of
the source code so I can't check it)

Bron.


More information about the Info-cyrus mailing list