Archive of RubyForge sup-talk mailing list
 help / color / mirror / Atom feed
* [sup-talk] [PATCH] sup-sync: restore state on messages that dont already exist
@ 2009-08-23 18:36 Rich Lane
  2009-09-01  2:41 ` William Morgan
  0 siblings, 1 reply; 4+ messages in thread
From: Rich Lane @ 2009-08-23 18:36 UTC (permalink / raw)


---
 bin/sup-sync |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/bin/sup-sync b/bin/sup-sync
index 2aa00c3..003a72d 100755
--- a/bin/sup-sync
+++ b/bin/sup-sync
@@ -174,7 +174,12 @@ begin
       ## decide what to do based on message labels and the operation we're performing
       dothis, new_labels = case
       when (op == :restore) && restored_state[m.id] && old_m && (old_m.labels != restored_state[m.id])
+        num_restored += 1
         [:update_message_state, restored_state[m.id]]
+      when (op == :restore) && restored_state[m.id] && !old_m
+        num_restored += 1
+        m.labels = restored_state[m.id]
+        :add_message
       when op == :discard
         if old_m && (old_m.labels != m.labels)
           [:update_message_state, m.labels]
-- 
1.6.4



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

* [sup-talk] [PATCH] sup-sync: restore state on messages that dont already exist
  2009-08-23 18:36 [sup-talk] [PATCH] sup-sync: restore state on messages that dont already exist Rich Lane
@ 2009-09-01  2:41 ` William Morgan
  0 siblings, 0 replies; 4+ messages in thread
From: William Morgan @ 2009-09-01  2:41 UTC (permalink / raw)


Applied, thanks!
-- 
William <wmorgan-sup at masanjin.net>


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

* [sup-talk] [PATCH] sup-sync: restore state on messages that dont already exist
  2009-08-31  0:50 Rich Lane
@ 2009-08-31  1:48 ` Blake Burkhart
  0 siblings, 0 replies; 4+ messages in thread
From: Blake Burkhart @ 2009-08-31  1:48 UTC (permalink / raw)


Excerpts from Rich Lane's message of Sun Aug 30 19:50:34 -0500 2009:
> ---
>  bin/sup-sync |    5 +++++
>  1 files changed, 5 insertions(+), 0 deletions(-)
> 
> diff --git a/bin/sup-sync b/bin/sup-sync
> index 2aa00c3..003a72d 100755
> --- a/bin/sup-sync
> +++ b/bin/sup-sync
> @@ -174,7 +174,12 @@ begin
>        ## decide what to do based on message labels and the operation we're
> performing
>        dothis, new_labels = case
>        when (op == :restore) && restored_state[m.id] && old_m && (old_m.labels
> != restored_state[m.id])
> +        num_restored += 1
>          [:update_message_state, restored_state[m.id]]
> +      when (op == :restore) && restored_state[m.id] && !old_m
> +        num_restored += 1
> +        m.labels = restored_state[m.id]
> +        :add_message
>        when op == :discard
>          if old_m && (old_m.labels != m.labels)
>            [:update_message_state, m.labels]

Yay, thank you. Everything works now I think. I now have xapian working correctly I think.


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

* [sup-talk] [PATCH] sup-sync: restore state on messages that dont already exist
@ 2009-08-31  0:50 Rich Lane
  2009-08-31  1:48 ` Blake Burkhart
  0 siblings, 1 reply; 4+ messages in thread
From: Rich Lane @ 2009-08-31  0:50 UTC (permalink / raw)


---
 bin/sup-sync |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/bin/sup-sync b/bin/sup-sync
index 2aa00c3..003a72d 100755
--- a/bin/sup-sync
+++ b/bin/sup-sync
@@ -174,7 +174,12 @@ begin
       ## decide what to do based on message labels and the operation we're performing
       dothis, new_labels = case
       when (op == :restore) && restored_state[m.id] && old_m && (old_m.labels != restored_state[m.id])
+        num_restored += 1
         [:update_message_state, restored_state[m.id]]
+      when (op == :restore) && restored_state[m.id] && !old_m
+        num_restored += 1
+        m.labels = restored_state[m.id]
+        :add_message
       when op == :discard
         if old_m && (old_m.labels != m.labels)
           [:update_message_state, m.labels]
-- 
1.6.4



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

end of thread, other threads:[~2009-09-01  2:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-23 18:36 [sup-talk] [PATCH] sup-sync: restore state on messages that dont already exist Rich Lane
2009-09-01  2:41 ` William Morgan
2009-08-31  0:50 Rich Lane
2009-08-31  1:48 ` Blake Burkhart

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