Archive of RubyForge sup-talk mailing list
 help / color / mirror / Atom feed
* [sup-talk] mismatch in mbox file offset 0
@ 2008-12-02 14:54 tocer
  2008-12-02 16:17 ` William Morgan
  0 siblings, 1 reply; 5+ messages in thread
From: tocer @ 2008-12-02 14:54 UTC (permalink / raw)


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?




^ permalink raw reply	[flat|nested] 5+ messages in thread

* [sup-talk] mismatch in mbox file offset 0
  2008-12-02 14:54 [sup-talk] mismatch in mbox file offset 0 tocer
@ 2008-12-02 16:17 ` William Morgan
  2008-12-03  3:04   ` tocer
  0 siblings, 1 reply; 5+ messages in thread
From: William Morgan @ 2008-12-02 16:17 UTC (permalink / raw)


Reformatted excerpts from tocer.deng's message of 2008-12-02:
> Thanks you guys great work. the sup is the best mail client I have
> seen.

Thanks!

> 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.

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>


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [sup-talk] mismatch in mbox file offset 0
  2008-12-02 16:17 ` William Morgan
@ 2008-12-03  3:04   ` tocer
  2008-12-03  3:39     ` Christopher Warrington
       [not found]     ` <1228294025-sup-7941@ausone.inria.fr>
  0 siblings, 2 replies; 5+ messages in thread
From: tocer @ 2008-12-03  3:04 UTC (permalink / raw)



> 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.



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.



^ permalink raw reply	[flat|nested] 5+ messages in thread

* [sup-talk] mismatch in mbox file offset 0
  2008-12-03  3:04   ` tocer
@ 2008-12-03  3:39     ` Christopher Warrington
       [not found]     ` <1228294025-sup-7941@ausone.inria.fr>
  1 sibling, 0 replies; 5+ messages in thread
From: Christopher Warrington @ 2008-12-03  3:39 UTC (permalink / raw)


"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.
>>
> 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 :)

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




^ permalink raw reply	[flat|nested] 5+ messages in thread

* [sup-talk]  mismatch in mbox file offset 0
       [not found]       ` <d5ea6e840812041839k11f062b6n5d7f5aa518c82146@mail.gmail.com>
@ 2008-12-05  2:42         ` tocer
  0 siblings, 0 replies; 5+ messages in thread
From: tocer @ 2008-12-05  2:42 UTC (permalink / raw)


2008/12/3 Nicolas Pouillard <nicolas.pouillard at gmail.com>:
> Excerpts from tocer's message of Wed Dec 03 04:04:25 +0100 2008:
>>
>> > 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.
>>
>>
>>
>> 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 :)
>
> 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

>> 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
>
> Yes there is a lock on the index to avoid data-corruption.
>
> --
> Nicolas Pouillard aka Ertai
>


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-12-05  2:42 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-12-02 14:54 [sup-talk] mismatch in mbox file offset 0 tocer
2008-12-02 16:17 ` William Morgan
2008-12-03  3:04   ` tocer
2008-12-03  3:39     ` Christopher Warrington
     [not found]     ` <1228294025-sup-7941@ausone.inria.fr>
     [not found]       ` <d5ea6e840812041839k11f062b6n5d7f5aa518c82146@mail.gmail.com>
2008-12-05  2:42         ` tocer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox