[sup-devel] Maildir synchronizing other labels

2012-08-21 Thread Edward Z. Yang
I think it would be nice if we at least support the :inbox label, so that we can keep our inboxes tidy and our OfflineIMAP sync times down. Proposed implementation strategy: - Define a label/source mapping, as well as a default source for unrecognized labels and an ordering on labels if

[sup-devel] inotify support for Maildir mailboxes

2012-08-21 Thread Edward Z. Yang
I'm planning on adding inotify support for Maildir mailboxes. This would mean we no longer need to 'poll' to find new messages; they show up instantly. Let me know if you're interested and willing to help test. Cheers, Edward ___ Sup-devel mailing list

Re: [sup-devel] inotify support for Maildir mailboxes

2012-08-21 Thread Alvaro Herrera
Excerpts from Edward Z. Yang's message of mar ago 21 11:17:32 -0400 2012: > I'm planning on adding inotify support for Maildir mailboxes. > This would mean we no longer need to 'poll' to find new messages; > they show up instantly. Let me know if you're interested and willing > to help test. I de

[sup-devel] [PATCH] Sync and update other threads when Maildir sync-back changes location.

2012-08-21 Thread Edward Z. Yang
From: "Edward Z. Yang" Signed-off-by: Edward Z. Yang --- lib/sup/maildir.rb | 2 +- lib/sup/message.rb | 6 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/sup/maildir.rb b/lib/sup/maildir.rb index 0c8c563..050cfaf 100644 --- a/lib/sup/maildir.rb +++ b/lib/sup/maildir.

Re: [sup-devel] [PATCH] Sync and update other threads when Maildir sync-back changes location.

2012-08-21 Thread Edward Z. Yang
This fixes the "I changed a message from unread to read in one list (e.g. 'U') and now when I open the message from inbox it can't find it" bug. Here is a version that is theoretically more efficient, though God help you if you have more than one location per message. commit ca5b02b8ff88412f92984

Re: [sup-devel] [PATCH] Sync and update other threads when Maildir sync-back changes location.

2012-08-21 Thread Edward Z. Yang
Aaand here's an even prettier version. commit f7d30410d946418a885929f20a498c10e4058243 Author: Edward Z. Yang Date: Tue Aug 21 15:19:11 2012 -0400 Sync and update other threads when Maildir sync-back changes location. Signed-off-by: Edward Z. Yang diff --git a/lib/sup/maildir.rb

[sup-devel] [PATCH] Implement moving message between Maildir sources based on label.

2012-08-21 Thread Edward Z. Yang
From: "Edward Z. Yang" Signed-off-by: Edward Z. Yang --- lib/sup/maildir.rb | 28 ++-- lib/sup/message.rb | 9 +++-- 2 files changed, 29 insertions(+), 8 deletions(-) diff --git a/lib/sup/maildir.rb b/lib/sup/maildir.rb index 95305c2..ff8da23 100644 --- a/lib/sup/m

Re: [sup-devel] [PATCH] Implement moving message between Maildir sources based on label.

2012-08-21 Thread Edward Z. Yang
Usage instructions: In config.yaml, you need to add a new option :maildir_labels: :maildir_labels: :stanford: [[:inbox, 4], [null, 6]] Maildir labels is a dictionary of "accounts" to lists of precedences. Read it as follows: For messages in source 4 or source 6 (consult sources.ya