Sneaky approach number 1: delete cyrus.index and run reconstruct after touching the files. Sneaky approach number 2: use the sync_server protocol to directly change the INTERNALDATE (I've done this with my "IMAP to Cyrus" importer that can keep UIDVALIDITY and all that jazz... it's not very polished yet though! - so far I've only used it to import my family's old email from Courier into FastMail's Cyrus world) Sneaky approach number 3: use Cyrus::IndexFile from my perl stuff (I'm sure I've posted it before, but I should probably package it up and push it upstream) to directly fiddle the cyrus.index and change the INTERNALDATE that way. Sneaky approach number 4: use a hex editor and hand fiddle cyrus.index (I don't do that any more, I have a library. I also have a tool which can dump cyrus.index files as a plaintext editable format and then recreate them from same!) Bron ( though I haven't used it for so long it probably has bitrot! ) On Thu, 23 Oct 2008 13:11:23 +0200, "peter pilsl" <pilsl@xxxxxxxxxxxx> said: > > To add to my question: > > Is there a imap-command that allows to change the value of internaldate > or do I need to implement a series of FETCH,DELETE,APPEND-commands to > change the date? So far the APPEND-command is the only way I've found to > set the value of INTERNALDATE, but APPEND only is for new messages. > > I can imagine doing some imapsync and applying the "correct" date. (I > can extract a proper date from the mailheaders), but as this is a > problem that appears now and then on one of my servers and is asked now > and then on the internet, I would like to create a solid solution for > this. > > any help appretiated, > thnx > peter > > > peter pilsl wrote: > > When I copy old emails from one folder to another then the date of this > > emails as shown by several clients (OutlookExpress, Thunderbird) is not > > the original date but the date when I copied these emails. > > > > First I thought I can change this date by changing the date of the > > actual file that contains a certain email, but this did not work. > > > > So how can I change the date of a email on a cyrus-imap-server? > > > > Do I need to delete certain cache-files and reconstruct all mailboxes or > > is there a secret (at least to me) command or ...? > > > > thnx for any advice, > > peter > > > > > > > -- > mag. peter pilsl - goldfisch.at > IT-Consulting > Tel: +43-699-11288470 > Tel: +43-1-8900602 > Fax: +43-1-8900602-15 > skype: peter.pilsl > pilsl@xxxxxxxxxxxx > www.goldfisch.at > ---- > Cyrus Home Page: http://cyrusimap.web.cmu.edu/ > Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki > List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html -- Bron Gondwana brong@xxxxxxxxxxx ---- Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html