Discussions of development and use of the Sup email client
 help / color / mirror / Atom feed
* offsets for mbox broken
@ 2016-01-20  9:56 Martin Bähr
  2016-01-20 14:22 ` [sup] " Mark Alexander
  0 siblings, 1 reply; 4+ messages in thread
From: Martin Bähr @ 2016-01-20  9:56 UTC (permalink / raw)
  To: supmua

hi,

i just made the mistake of accessing my inbox with imap, and now all the
offsets in the sup database are broken. 

how can i get sup to resync to the new offsets?

greetings, martin.

-- 
eKita                   -   the online platform for your entire academic life
-- 
chief engineer                                                       eKita.co
pike programmer      pike.lysator.liu.se    caudium.net     societyserver.org
secretary                                                      beijinglug.org
mentor                                                           fossasia.org
foresight developer  foresightlinux.org                            realss.com
unix sysadmin
Martin Bähr          working in china        http://societyserver.org/mbaehr/


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

* Re: [sup] offsets for mbox broken
  2016-01-20  9:56 offsets for mbox broken Martin Bähr
@ 2016-01-20 14:22 ` Mark Alexander
  2016-01-20 14:25   ` Mark Alexander
  2016-01-20 17:15   ` Martin Bähr
  0 siblings, 2 replies; 4+ messages in thread
From: Mark Alexander @ 2016-01-20 14:22 UTC (permalink / raw)
  To: Martin Bähr; +Cc: supmua

Excerpts from Martin Bähr's message of 2016-01-20 10:56:00 +0100:
> how can i get sup to resync to the new offsets?

In the past, when I've had problems with the Xapian index, I've done this:

1. Use sup-dump to make an ASCII dump of the message state and tags.
2. Move the Xapian index (~/.sup/xapian) to some other location.
3. Used sup-restore to read the dump created in step 1.

I don't know if this going to work for you, but it might be worth
a try since your index is broken.


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

* Re: [sup] offsets for mbox broken
  2016-01-20 14:22 ` [sup] " Mark Alexander
@ 2016-01-20 14:25   ` Mark Alexander
  2016-01-20 17:15   ` Martin Bähr
  1 sibling, 0 replies; 4+ messages in thread
From: Mark Alexander @ 2016-01-20 14:25 UTC (permalink / raw)
  To: Mark Alexander; +Cc: Martin Bähr, supmua

Excerpts from Mark Alexander's message of 2016-01-20 09:22:53 -0500:
> 3. Used sup-restore to read the dump created in step 1.

Sorry, I meant sup-sync.  There is no sup-restore.


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

* Re: [sup] offsets for mbox broken
  2016-01-20 14:22 ` [sup] " Mark Alexander
  2016-01-20 14:25   ` Mark Alexander
@ 2016-01-20 17:15   ` Martin Bähr
  1 sibling, 0 replies; 4+ messages in thread
From: Martin Bähr @ 2016-01-20 17:15 UTC (permalink / raw)
  To: Mark Alexander; +Cc: supmua

On Wed, Jan 20, 2016 at 09:22:53AM -0500, Mark Alexander wrote:
> 1. Use sup-dump to make an ASCII dump of the message state and tags.
> 2. Move the Xapian index (~/.sup/xapian) to some other location.
> 3. Used sup-restore to read the dump created in step 1.
> 
> I don't know if this going to work for you, but it might be worth
> a try since your index is broken.

wow, thank you!                                                                                   
i don't see how it could not work. sup-dump only stores the message-id
and the                    
labels, that means on restore sup-sync has to find that message and then
recreate                 
everything else from the original mbox data.                                                      
                                                                                                  
it is essentially doing a fresh import of everything, with the only
added                         
information of setting the labels. looks fool-proof to me.                                        
                                                                                                  
the only downside is that at 6GB of emails, this is going to take a
loooong time.  (and so i need to write this with mutt :-(

i am certainly going to complete this, but i wonder if there is a faster
way, something that doesn't rebuild the whole index, but just resyncs
the offsets.

greetings, martin.
-- 
eKita                   -   the online platform for your entire academic life
-- 
chief engineer                                                       eKita.co
pike programmer      pike.lysator.liu.se    caudium.net     societyserver.org
secretary                                                      beijinglug.org
mentor                                                           fossasia.org
foresight developer  foresightlinux.org                            realss.com
unix sysadmin
Martin B�hr          working in china        http://societyserver.org/mbaehr/


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

end of thread, other threads:[~2016-01-20 17:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-20  9:56 offsets for mbox broken Martin Bähr
2016-01-20 14:22 ` [sup] " Mark Alexander
2016-01-20 14:25   ` Mark Alexander
2016-01-20 17:15   ` Martin Bähr

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