[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sup-talk] Hook for in-reply-to



FYI you can create a small script to fix already indexed mails.
Be sure to quit sup before you do this and change the moodlepost address.

require 'sup'
include Redwood
start
i = Index.init
i.load

moodle_junk = "moodlepost0@whatever.org"

i.each_message do |m|
  if m.replytos.include?(moodle_junk)
    m.replytos.delete(moodle_junk)
    i.update_message_state m
  end

  if m.refs.include?(moodle_junk)
    m.refs.delete(moodle_junk)
    i.update_message_state m
  end
end

i.save
_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk