Subject: [sup-talk] mismatch in mbox file offset 0

From: [email-masked] (tocer)
Date: Tue, 02 Dec 2008 22:54:35 +0800

Hi,

Thanks you guys great work. the sup is the best mail client I have seen.

I met a problem. I add a source formatted mbox. and I use getmail program to get 
mail, then the mail is filtered by procmail and is saved in ~/mail/vim. But it 
occure error when sup start:

Scanning mbox:/home/dm/mail/vim...
problem getting messages from mbox:/home/dm/mail/vim: mismatch in mbox file 
offset 0: "Return-Path: <yaksavage at gmail.com>\n".

I can't see any mail after entering sup. In fact, there is many mails in vim mbox.

what's wrong with it?

---

From: [email-masked] (William Morgan)
Date: Tue, 02 Dec 2008 08:17:11 -0800

> Thanks you guys great work. the sup is the best mail client I have

Thanks!

> offset 0: "Return-Path: <yaksavage at gmail.com>\n".

Is the very first line of that mbox "Return-Path: <yaksavage at gmail.com>"?
If so, that's not a valid mbox.

If not, you need to run "sup-sync --changed mbox:/home/dm/mail/vim" to
update Sup's index. This has to be done whenever the mbox changes in any
way other than adding new messages.
-- 
William <wmorgan-sup at masanjin.net>

---

From: [email-masked] (tocer)
Date: Tue, 2 Dec 2008 19:04:25 -0800 (PST)

No, it's a valid mbox, refer http://en.wikipedia.org/wiki/Return_path

it works if I relace return_path with "from ". I'll try to define a rule to
do replacement
in procmailrc. But it would be good idea to dealing correctly it in sup :)

And it seems that sup-sync can't run while sup is running. It means that I
can't open 
sup in whole day because I need sup-sync run when I get new mail if I use
some mbox 
as source
-- 
View this message in context: http://www.nabble.com/mismatch-in-mbox-file-offset-0-tp20794067p20805870.html
Sent from the SUP Talk mailing list archive at Nabble.com.

---

From: [email-masked] (Christopher Warrington)
Date: Tue, 02 Dec 2008 21:39:40 -0600

"tocer" <tocer.deng at gmail.com> @ 2008-12-2 9:04 PM:

>>> Scanning mbox:/home/dm/mail/vim... problem getting messages from
>>> mbox:/home/dm/mail/vim: mismatch in mbox file offset 0: "Return-Path:
>>> <yaksavage at gmail.com>\n".
>>>
>> Is the very first line of that mbox "Return-Path: <yaksavage at gmail.com>"? If
>> so, that's not a valid mbox.
>>
> it works if I relace return_path with "from ". I'll try to define a rule to do
> replacement in procmailrc. But it would be good idea to dealing correctly it
> in sup :)

Hmmm.... I don't think that that's a valid mbox.
<http://tools.ietf.org/html/rfc4155>
<http://en.wikipedia.org/wiki/Mbox>

-- 
Christopher Warrington <chrisw at rice.edu>
Jones College

---

From: [email-masked] (tocer)
Date: Fri, 5 Dec 2008 10:42:38 +0800

2008/12/3 Nicolas Pouillard <nicolas.pouillard at gmail.com>:
> Excerpts from tocer's message of Wed Dec 03 04:04:25 +0100 2008:
>>
> I think you make the confusion between the email field "From:" and the mbox
> email separator "From ". "Return-Path:" is also an email field, so I think
> your email is not properly wrapped to be in an mbox.

No, I don't. Now I solve it by adding the following lines into
.procmailrc's header

:0 fhw
| formail -I "From " -a "From "

I think it's helpful if someone use procmail as MTA

> Yes there is a lock on the index to avoid data-corruption.
>
> --
> Nicolas Pouillard aka Ertai
>