From owner-freebsd-isp@FreeBSD.ORG Tue Jul 18 02:16:08 2006 Return-Path: X-Original-To: freebsd-isp@freebsd.org Delivered-To: freebsd-isp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A930B16A4E6 for ; Tue, 18 Jul 2006 02:16:08 +0000 (UTC) (envelope-from ormandj@corenode.com) Received: from zone2.corenode.com (zone2.corenode.com [66.91.129.184]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0B8DE43D53 for ; Tue, 18 Jul 2006 02:16:07 +0000 (GMT) (envelope-from ormandj@corenode.com) Received: from corenode.com ([127.0.0.1]) by zone2.corenode.com (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005)) with ESMTP id <0J2K00G5UUE4EA00@zone2.corenode.com> for freebsd-isp@freebsd.org; Mon, 17 Jul 2006 16:18:04 -1000 (HST) Received: from [132.160.192.10] by zone2.corenode.com (mshttpd); Mon, 17 Jul 2006 16:18:04 -1000 Date: Mon, 17 Jul 2006 16:18:04 -1000 From: "David J. Orman" To: freebsd-isp@freebsd.org Message-id: MIME-version: 1.0 X-Mailer: Sun Java(tm) System Messenger Express 6.2-3.04 (built Jul 15 2005) Content-type: text/plain; charset=us-ascii Content-language: en Content-transfer-encoding: 7BIT Content-disposition: inline X-Accept-Language: en Priority: normal Subject: Fix dates via IMAP on messages X-BeenThere: freebsd-isp@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Internet Services Providers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Jul 2006 02:16:08 -0000 Hi, I've got a curious problem. Due to a bad migration many years ago (via maildir cp's) by one of the admins at my ISP, I've got a mess when trying to view webmail. The webmail client (no, this is not something I can change) relies on server-date for email dates, instead of looking at the email headers. The server-based date for the mail is of course the file creation/modification time, and cp -p was not used apparently. All of my new mail is fine (I run my mailserver now) but my mail from about 7-10 years ago is all the date of the migration. Is there any program out there that will read the headers of the mail and change the server-date of the files? I've tried imapsync with -syncinternaldate, to see if it read headers, but it doesn't. I just want to be able to run the command on the user/imap server of choice, and have it read all the mail headers, and set the creation dates properly on the mails (all via IMAP). Any help would be much appreciated! David