From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.52.72.138 with SMTP id d10cs22178vdv; Sun, 8 Jan 2012 15:05:55 -0800 (PST) Received: by 10.229.137.18 with SMTP id u18mr4856638qct.153.1326063953866; Sun, 08 Jan 2012 15:05:53 -0800 (PST) Return-Path: Received: from rubyforge.org (rubyforge.org. [205.234.109.19]) by mx.google.com with ESMTP id f19si4328541qcr.202.2012.01.08.15.05.53; Sun, 08 Jan 2012 15:05:53 -0800 (PST) Received-SPF: pass (google.com: domain of sup-devel-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-devel-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) smtp.mail=sup-devel-bounces@rubyforge.org Received: from rubyforge.org (rubyforge.org [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id 990FA121827B; Sun, 8 Jan 2012 18:05:53 -0500 (EST) Received: from mx02.rent-a-guru.de (srv2.rent-a-guru.de [212.86.204.162]) by rubyforge.org (Postfix) with ESMTP id F39791858367 for ; Sun, 8 Jan 2012 16:27:22 -0500 (EST) Received: from infra.in.zekjur.net (infra.in.zekjur.net [79.140.39.194]) (authenticated bits=0) by mx02.rent-a-guru.de (8.13.6/8.13.6) with ESMTP id q08LREFJ244616507 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Sun, 8 Jan 2012 22:27:21 +0100 (CET) Received: from x200 (unknown [IPv6:2001:0:53aa:64c:2460:40d3:a839:e559]) by infra.in.zekjur.net (Postfix) with ESMTPSA id C56854F3AC for ; Sun, 8 Jan 2012 22:27:13 +0100 (CET) Received: by x200 (Postfix, from userid 1000) id BF41060CB; Sun, 8 Jan 2012 21:27:11 +0000 (GMT) From: Michael Stapelberg To: sup-devel@rubyforge.org Date: Sun, 08 Jan 2012 21:27:11 +0000 Message-Id: <1326057857-sup-7185@stapelberg.de> User-Agent: turnsole, a heliotrope client v.git Subject: [sup-devel] [Heliotrope] when importing mail from sup, label "killed" doesn't get changed to "muted" X-BeenThere: sup-devel@rubyforge.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: Sup developer discussion List-Id: Sup developer discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: sup-devel-bounces@rubyforge.org Errors-To: sup-devel-bounces@rubyforge.org Hey again, I recently imported my mail from sup to heliotrope and noticed that I had a lot of threads in my inbox which were killed in sup. A quick glance at the source of heliotrope revealed that you made the label name consistent with GMail and renamed it to "muted". However, as the subject says, when importing, this label is not changed. For a quick fix after importing the messages, do the following in heliotrope-console: $ ruby -Ilib bin/heliotrope-console --dir /path/to/mailstore metaindex.set_query Query.new("body", "~killed") results = metaindex.get_some_results(metaindex.count_results) for result in results do labels = result[:labels] labels.delete("killed") labels.add("muted") metaindex.update_thread_labels(result[:thread_id], labels) end Best regards, Michael _______________________________________________ Sup-devel mailing list Sup-devel@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-devel