Archive of RubyForge sup-devel mailing list
 help / color / mirror / Atom feed
* [sup-devel] new branch: maildir
@ 2010-03-25  7:12 Rich Lane
  2010-03-25 11:24 ` Mark Alexander
  0 siblings, 1 reply; 4+ messages in thread
From: Rich Lane @ 2010-03-25  7:12 UTC (permalink / raw)
  To: sup-devel

This branch makes some drastic changes to how mbox and maildir sources
work. There's no longer any state associated with a source between Sup
runs - no cur_offset or mtimes in sources.yaml. Instead, the source
queries the index to find out which messages it's already seen and which
messages are new. This enables a much more robust maildir
implementation that detects the addition or deletion of any message.

It's not totally done yet. It'll detect that a maildir message has been
deleted, but it doesn't yet remove the old location from the index so
renames are unlikely to work. There needs to be UI code to handle the
case where a message matches a search but has been deleted from all
sources, and probably a utility to remove such messages from the index. 
I expect sup-sync-back to be broken.

Keeping track of multiple locations per message requires an index format
change. The upgrade process is trivial and done automatically but you
won't be able to use that index with an older Sup. For now if you want
to try this out I suggest using a different SUP_BASE.

I'd appreciate any comments about the code or general approach. If
anyone would like to contribute an email corpus for the unwritten
testsuite or pseudocode out some testcases that would be very helpful
too.
_______________________________________________
Sup-devel mailing list
Sup-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-devel


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

end of thread, other threads:[~2010-03-25 16:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-25  7:12 [sup-devel] new branch: maildir Rich Lane
2010-03-25 11:24 ` Mark Alexander
2010-03-25 13:30   ` Ben Walton
2010-03-25 16:11   ` Rich Lane

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