Re: [Dovecot] invalid mbox files
I am resending this because I have not gotten a response in a few days. Help is appreciated!
Timo Sirainen wrote ..
On Fri, 2005-12-30 at 17:50 -0700, Harout S. Hedeshian wrote:
I recently upgraded from dovecot 0.9x to 1.0.5-Aplha and now when ever folders are opened (in IMAP), it keeps saying invalid mbox files. It worked fine in 0.99.x. It is detecting the right mbox files because it lists the folders and the subscriptions correctly. I am using "default_mail_env = mbox:~/mail/:INBOX=/var/mail/%u" in the config file, but I get the same error with "Detect automatically". It generates nothing in the log files so I am lost!! I tried both outlook and thunderbird but same results.
Invalid mbox file error comes only if the first line of the mbox file isn't valid. What does it look like? It should be something like:
From someone@somewhere Wed Jan 5 09:03:48 2005
0.99.x Dovecot didn't accept broken From-lines either, but it might have had slightly different logic in checking what's valid and what's not.
Here is a sample file generated by postfix. Note: it is NOT censored or edited. What you see is the real thing.
From - Sat, 6 Apr 2002 04:07:18^M Return-Path: <List-owner@mail.fuelcellstore.com> Received: from mail.fuelcellstore.com ([207.174.23.2]) by rwcrgwc55.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020406013417.LNRM3313.rwcrgwc55.attbi.com@mail.fuelcellstore.com> for <haroutetoot@attbi.com>; Sat, 6 Apr 2002 01:34:17 +0000 Received: from saa01.saleebaadams.com.au [203.59.141.98] by mail.revealmail.com with ESMTP (SMTPD32-7.06) id A64E1BA01F8; Fri, 05 Apr 2002 17:50:22 -0700 Received: from saa01.saleebaadams.com.au (10.0.0.13 [10.0.0.13]) by saa01.saleebaadams.com.au with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id 1KDV523W; Sat, 6 Apr 2002 08:45:25 +0800 Received: by saa01.saleebaadams.com.au (Microsoft Exchange Connector for POP3 Mailboxes 4.50.2113) with SMTP (Global POP3 Download) id MSG04062002-084518-2751.MMD@SAA01; Sat, 6 Apr 2002 08:45:18 +0800 Return-Path: <List-owner@mail.fuelcellstore.com> Delivered-To: saa@iinet.net.au Received: (qmail 28777 invoked by uid 666); 6 Apr 2002 00:24:40 -0000 Delivered-To: saa-saleebaadamscomau-n.juniper@saleebaadams.com.au X-Envelope-To: <n.juniper@saleebaadams.com.au> Received: (qmail 28767 invoked by uid 666); 6 Apr 2002 00:24:39 -0000 Received: from unknown (HELO mail.fuelcellstore.com) (207.174.23.2) by mail.iinet.net.au with SMTP; 6 Apr 2002 00:24:39 -0000 Received: from mtiwmhc23.worldnet.att.net [204.127.131.48] by mail.revealmail.com with ESMTP (SMTPD32-7.06) id AD4D1690192; Fri, 05 Apr 2002 17:11:57 -0700 Received: from jason ([12.81.167.50]) by mtiwmhc23.worldnet.att.net (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020406001120.RBFM8815.mtiwmhc23.worldnet.att.net@jason>; Sat, 6 Apr 2002 00:11:20 +0000 Reply-To: fuelcell@fuelcellstore.com From: "fuelcell" <fuelcell@fuelcellstore.com> To: list@mail.fuelcellstore.com Subject: FuelCellStore.com Date: Fri, 5 Apr 2002 17:11:08 -0700 Message-ID: <001d01c1dcff$8f6c5fa0$cacbfea9@jason> MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.3416 X-MIMEOLE: Produced By Microsoft MimeOLE V5.00.2615.200 Importance: Normal X-Sender: List-owner@mail.fuelcellstore.com Precedence: bulk Sender: List-owner@mail.fuelcellstore.com Content-transfer-encoding: 8bit X-IMAPbase: 1135543792 1 Status: O X-UID: 1 Content-Length: 150475 X-Keywords:
Dear Fuel Cell Enthusiast,^M ^M FuelCellStore.com would like to tell you about several new fuel cell products and our redesigned website. ^M ^M
ding critical power for nominal apparatus and remote applications. You will find a link to this product at www.fuelcellstore.com^M^M One of which is the new 500W unit that is available for residential back up power, or remote low power primary needs. These units can be stacked up to 1500W and self-starts upon grid failure ~V provi
^M Bench Top Methanol Reformer capable of generating ultra-pure hydrogen from methanol and water for University and Research Labs. Please reply for more information. ^M
^M FuelCellStore.com has many new educational products and a new nav bar to help you find the products you are looking for. Please check out our Student and Teacher section at www.fuelcellstore.com/products.htm l^M Please let us know what you think of the new site structure and any feedback would be great. ^M ^M You have received this message because you have contacted fuelcellstore.com in the past and asked to receive FuelCellStore.com news. If you would like to unsubscribe from our mailing please reply to this mes sage with unsubscribe in the subject heading. ^M ^M Sincerely,^M ^M FuelCellStore.com^M PO Box 4038^M Boulder, CO 80306-4038^M Harout Hedeshian^M A fuel cell powered remote control car with metal hydride storage. ^M
harout@hedeshian.net 720 - 261 - 3548
On Fri, 2006-01-06 at 12:11 -0700, Harout S. Hedeshian wrote:
From someone@somewhere Wed Jan 5 09:03:48 2005 .. From - Sat, 6 Apr 2002 04:07:18
How have you added the mails to the mailbox? Dovecot can't handle that kind of a timestamp. I suppose I could add support for it..
Timo Sirainen wrote ..
On Fri, 2006-01-06 at 12:11 -0700, Harout S. Hedeshian wrote:
From someone@somewhere Wed Jan 5 09:03:48 2005 .. From - Sat, 6 Apr 2002 04:07:18
How have you added the mails to the mailbox? Dovecot can't handle that kind of a timestamp.
Interesting... The dovecot 0.99 I was using was packaged with Mandriva. Is it possible that they added support for that time stamp themselves? My mailbox files get generated one of three ways: thunderbird, fetchmail, and postfix. I used thunderbird to convert my Outlook files to mbox files, and thats the one that I sent. Here is a sample timestamp from postfix:
From returns@cacert.org Mon Dec 12 21:31:13 2005
After further investigation, the mbox files generated by postfix and usermin (the sent items folder I think is generated by webmin and not postfix) work fine. If the mbox file was originally generated by thunderbird, then it fails, even if postfix has appended to it. I still don't understand why it worked in 0.99 and not 1.*?
I suppose I could add support for it..
Unless you know of a conversion utility, I think that would be a good idea. I don't want to edit thousands of emails for multiple users manually in order to use dovecot.
Thanks, Harout Hedeshian
Am Samstag, 7. Januar 2006 03:18, schrieb Harout S. Hedeshian:
idea. I don't want to edit thousands of emails for multiple users manually in order to use dovecot.
Heavens, that's what sed is for! :-)
Greetings,
Gunter
-- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ there was, of course, no suggestion that they applied to her. --
- http://aachen.uni-dsl.de/ - Der direkte Draht in's Hochschulnetz! + +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ "'Tis not right, a woman going into such places by herself." Granny nodded. She thoroughly approved of such sentiments so long as
(Terry Pratchett, Wyrd Sisters) +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+PGP-verschlüsselte Mails bevorzugt! +
participants (3)
-
Gunter Ohrner
-
Harout S. Hedeshian
-
Timo Sirainen