Subject: [sup-talk] Correct way to sync index between two machines?

From: Horacio Sanson <[email-masked]>
Date: Tue, 22 Feb 2011 09:54:43 +0900

I have a laptop, my home desktop and my work desktop were I sync and
read my email. Previously with mutt I simply rsync my mail folders so
the mail was in sync with all three machines but for some reason rsync
the whole .sup folder results in corrupted index.

I make sure sup is not running and then rsync the .sup folder (via
unison). Then when trying to run sup in the updated machine I get this
error:

Scanning maildir:/home/user/.mail/hsanson/INBOX...
/var/lib/gems/1.9.1/gems/sup-0.12.1/lib/sup/index.rb:792:in `load':
invalid encoding symbol (EncodingError)
        from /var/lib/gems/1.9.1/gems/sup-0.12.1/lib/sup/index.rb:792:in `entry'
        from /var/lib/gems/1.9.1/gems/sup-0.12.1/lib/sup/index.rb:567:in
`get_entry'
        from /var/lib/gems/1.9.1/gems/sup-0.12.1/lib/sup/index.rb:196:in
`block in build_message'
        from /usr/lib/ruby/1.9.1/monitor.rb:201:in `mon_synchronize'
        from /var/lib/gems/1.9.1/gems/sup-0.12.1/lib/sup/index.rb:575:in
`synchronize'
        from /var/lib/gems/1.9.1/gems/sup-0.12.1/lib/sup/index.rb:196:in
`build_message'
        from /var/lib/gems/1.9.1/gems/sup-0.12.1/lib/sup/util.rb:609:in
`method_missing'
        from /var/lib/gems/1.9.1/gems/sup-0.12.1/lib/sup/poll.rb:159:in
`block in poll_from'
        from /var/lib/gems/1.9.1/gems/sup-0.12.1/lib/sup/maildir.rb:106:in
`block (2 levels) in poll'
        from /var/lib/gems/1.9.1/gems/sup-0.12.1/lib/sup/maildir.rb:105:in
`each'
        from /var/lib/gems/1.9.1/gems/sup-0.12.1/lib/sup/maildir.rb:105:in
`each_with_index'
        from /var/lib/gems/1.9.1/gems/sup-0.12.1/lib/sup/maildir.rb:105:in
`block in poll'
        from /var/lib/gems/1.9.1/gems/sup-0.12.1/lib/sup/maildir.rb:90:in `each'
        from /var/lib/gems/1.9.1/gems/sup-0.12.1/lib/sup/maildir.rb:90:in `poll'
        from /var/lib/gems/1.9.1/gems/sup-0.12.1/lib/sup/poll.rb:155:in
`poll_from'
        from /var/lib/gems/1.9.1/gems/sup-0.12.1/lib/sup/util.rb:609:in
`method_missing'
        from /var/lib/gems/1.9.1/gems/sup-0.12.1/bin/sup-sync:123:in
`block in <top (required)>'
        from /var/lib/gems/1.9.1/gems/sup-0.12.1/bin/sup-sync:118:in `each'
        from /var/lib/gems/1.9.1/gems/sup-0.12.1/bin/sup-sync:118:in
`<top (required)>'
        from /var/lib/gems/1.9.1/bin/sup-sync:19:in `load'
        from /var/lib/gems/1.9.1/bin/sup-sync:19:in `<main>'

Removing the index (xapian folder) fixes the problem but of course I
lost my whole night of labeling work.

So how to safely sync my index between several machines?

regards,
Horacio
_______________________________________________
sup-talk mailing list
[email-masked]
http://rubyforge.org/mailman/listinfo/sup-talk