From: "Edward Z. Yang" <ezyang@MIT.EDU>
To: Damien Leone <damien.leone@fensalir.fr>
Cc: sup-devel <sup-devel@rubyforge.org>
Subject: Re: [sup-devel] Adding backward synchronization for Maildir sources
Date: Sun, 18 Jul 2010 18:46:33 -0400 [thread overview]
Message-ID: <1279492496-sup-3638@ezyang> (raw)
In-Reply-To: <1278693172-sup-6247@mailer>
Sup Damien,
I cut over to your branch, plus one patch of my own making.
THE GOOD NEWS
It works! Whereby, messages are marked read in my webmail client and
deleted messages go away.
THE BAD NEWS
It makes Sup very crashy and there's some strange behavior. This is probably
the sixth time I'm composing this message (yeah, haven't learned my
lesson.) In more detail...
* You want the following OfflineImap patch, because otherwise the massive
changes to labels that will surely be induced by backwards syncing will
cause OfflineImap to CRAWL.
diff --git a/offlineimap/folder/LocalStatus.py b/offlineimap/folder/LocalStatus.py
index 157989d..7f4dc5b 100644
--- a/offlineimap/folder/LocalStatus.py
+++ b/offlineimap/folder/LocalStatus.py
@@ -33,7 +33,7 @@ class LocalStatusFolder(BaseFolder):
self.messagelist = None
self.repository = repository
self.savelock = threading.Lock()
- self.doautosave = 1
+ self.doautosave = 0
self.accountname = accountname
BaseFolder.__init__(self)
Though, you probably want to undo this patch when you're done. Autosaving
means partial progress is saved.
* Backwards syncing appears to make old deleted mail show up again; I'm not
sure if it's because touching the Maildir causes Sup to pick up on deleted
tags again or something, but I had to go back and delete lots of deleted mail.
* When Sup is deleting messages, it is /extremely/ unsafe to iterate over
a list of all messages in the index and query them for info: the threading means
that any given message might not exist anymore. I had a hook that kept triggering
this bug, and earlier on in the process drawing functions would also frequently
Nil error. This is probably under-tested codepaths in Sup that we should track
down; unfortunately I didn't have the presence of mind to record traces until
later (and the ones I got all look like my hooks fault).
* In a similar vein, while messages are going away, '@' will occasionally return
no messages (pressing again usually fixes it). Messages that are labelled inbox
will show up in 'U', but not in the inbox view without a Sup restart.
I haven't done a code review yet.
Cheers,
Edward
_______________________________________________
Sup-devel mailing list
Sup-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-devel
next prev parent reply other threads:[~2010-07-18 22:46 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-09 16:44 Damien Leone
2010-07-09 16:56 ` Edward Z. Yang
2010-07-09 17:14 ` Damien Leone
2010-07-09 19:46 ` Edward Z. Yang
2010-07-17 12:55 ` Damien Leone
2010-07-17 17:05 ` Ben Walton
2010-07-17 17:26 ` Damien Leone
2010-07-18 11:19 ` Tero Tilus
2010-07-18 22:46 ` Edward Z. Yang [this message]
2010-07-20 9:39 ` Damien Leone
2010-07-21 0:44 ` Edward Z. Yang
2010-07-21 8:52 ` Damien Leone
2010-07-21 8:54 ` Damien Leone
2010-07-18 22:50 ` Edward Z. Yang
2010-07-20 9:45 ` Damien Leone
2010-07-18 22:57 ` Edward Z. Yang
2010-07-24 21:30 ` Rich Lane
2010-07-25 22:25 ` Edward Z. Yang
2011-03-13 16:41 ` Damien Leone
2011-10-27 12:34 ` Justin Mazzi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1279492496-sup-3638@ezyang \
--to=ezyang@mit.edu \
--cc=damien.leone@fensalir.fr \
--cc=sup-devel@rubyforge.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox