Archive of RubyForge sup-talk mailing list
 help / color / mirror / Atom feed
From: "Johann Klähn" <kljohann@gmail.com>
To: sup-talk <sup-talk@rubyforge.org>
Subject: Re: [sup-talk] Hook for in-reply-to
Date: Sat, 18 Dec 2010 15:39:59 +0100	[thread overview]
Message-ID: <1292682785-sup-3227@ahoi> (raw)
In-Reply-To: <AANLkTi=24+QodANv51K=BzXkJJNRihvvM1HQa_zwQpWd@mail.gmail.com>

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


      reply	other threads:[~2010-12-18 14:43 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-17 14:03 Matti Eiden
2010-12-17 14:30 ` Ben Walton
2010-12-17 19:04   ` Matti Eiden
2010-12-18 14:39     ` Johann Klähn [this message]

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=1292682785-sup-3227@ahoi \
    --to=kljohann@gmail.com \
    --cc=sup-talk@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