From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.42.218.138 with SMTP id hq10cs105698icb; Fri, 17 Dec 2010 11:26:57 -0800 (PST) Received: by 10.229.222.13 with SMTP id ie13mr1100414qcb.227.1292614016782; Fri, 17 Dec 2010 11:26:56 -0800 (PST) Return-Path: Received: from rubyforge.org (rubyforge.org [205.234.109.19]) by mx.google.com with ESMTP id s14si1170209qcp.111.2010.12.17.11.26.56; Fri, 17 Dec 2010 11:26:56 -0800 (PST) Received-SPF: pass (google.com: domain of sup-talk-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) client-ip=205.234.109.19; Authentication-Results: mx.google.com; spf=pass (google.com: domain of sup-talk-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) smtp.mail=sup-talk-bounces@rubyforge.org; dkim=neutral (body hash did not verify) header.i=@gmail.com Received: from rubyforge.org (rubyforge.org [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id 43CF91858385; Fri, 17 Dec 2010 14:26:56 -0500 (EST) Received: from mail-wy0-f178.google.com (mail-wy0-f178.google.com [74.125.82.178]) by rubyforge.org (Postfix) with ESMTP id 7F8281858356 for ; Fri, 17 Dec 2010 14:10:06 -0500 (EST) Received: by wyb42 with SMTP id 42so986492wyb.23 for ; Fri, 17 Dec 2010 11:10:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=Z/Xe2BleVwQxz+S8wqn4S4ujZK1KhW2wX8SOlUokc6k=; b=v1/VSgEQwajfr2zUjrEIc5vM0B3r2yTeNgVVUFD7l3NV6+NvP1rdHq4Z94ngj5536q CdwtvCpLeME/7KAgpzusJ464XLpQ27Y4jN5CQu7T+N1rWIOBoeRnYD3/hnqqAg+N8koh TdW7ta14MdNJnC3zoXMyF4zULtA0I4M4hbtC4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=esFlNap4l87DFx0gpVjQDBdIKDlV6GglLSuscjRyW/pzEBhJbfxdDdCdoaI1SwXAXQ jmzz2zoLAhC671wi5Ky2M+9V9+zGPp8dLwXtqpGmViGUXLYWgjYxlhS9T6aCHeMR2OFL P9BdEFa+0Q5fLmAWuKLWRLwfLd6cGyyiYKZoU= MIME-Version: 1.0 Received: by 10.227.132.143 with SMTP id b15mr774762wbt.9.1292612667469; Fri, 17 Dec 2010 11:04:27 -0800 (PST) Received: by 10.227.151.73 with HTTP; Fri, 17 Dec 2010 11:04:27 -0800 (PST) In-Reply-To: <1292596203-sup-4988@pinkfloyd.chass.utoronto.ca> References: <1292596203-sup-4988@pinkfloyd.chass.utoronto.ca> Date: Fri, 17 Dec 2010 21:04:27 +0200 Message-ID: From: Matti Eiden To: sup-talk Subject: Re: [sup-talk] Hook for in-reply-to X-BeenThere: sup-talk@rubyforge.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: User & developer discussion of Sup List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: sup-talk-bounces@rubyforge.org Errors-To: sup-talk-bounces@rubyforge.org For anyone concerned, here's what worked for me. It was important to delete the reference too, which included the same thing, as I guess the threading function of sup automatically sets the reference to in-reply-to if it's missing. Here's also the original bug report at Moodle; http://tracker.moodle.org/browse/MDL-22551 Thanks Ben for pointing me in the right direction. ##hooks/before-add-message.rb fail_replyto = "moodlepost0@moodle.tamk.fi" if message.replytos.include?(fail_replyto) message.replytos.delete(fail_replyto) end if message.refs.include?(fail_replyto) message.refs.delete(fail_replyto) end _______________________________________________ sup-talk mailing list sup-talk@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-talk