From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.96.157.163 with SMTP id wn3csp36172qdb; Wed, 23 Apr 2014 09:55:57 -0700 (PDT) X-Received: by 10.60.78.165 with SMTP id c5mr1495639oex.83.1398272157661; Wed, 23 Apr 2014 09:55:57 -0700 (PDT) Return-Path: Received: from rubyforge.org ([50.56.192.79]) by mx.google.com with ESMTP id eh9si1378910oeb.64.2014.04.23.09.55.57 for ; Wed, 23 Apr 2014 09:55:57 -0700 (PDT) Received-SPF: pass (google.com: domain of sup-talk-bounces@rubyforge.org designates 50.56.192.79 as permitted sender) client-ip=50.56.192.79; Authentication-Results: mx.google.com; spf=pass (google.com: domain of sup-talk-bounces@rubyforge.org designates 50.56.192.79 as permitted sender) smtp.mail=sup-talk-bounces@rubyforge.org Received: from localhost.localdomain (localhost [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id 6CEC92E234; Wed, 23 Apr 2014 16:55:58 +0000 (UTC) X-Greylist: delayed 1428 seconds by postgrey-1.31 at rubyforge; Wed, 23 Apr 2014 16:54:59 UTC Received: from mail-oa0-f50.google.com (mail-oa0-f50.google.com [209.85.219.50]) by rubyforge.org (Postfix) with ESMTP id 6B2482E2A2 for ; Wed, 23 Apr 2014 16:54:59 +0000 (UTC) Received: by mail-oa0-f50.google.com with SMTP id i11so1332615oag.9 for ; Wed, 23 Apr 2014 09:54:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:content-type:from:to:subject:in-reply-to :references:date:message-id:user-agent:content-transfer-encoding; bh=1Lu8VF3fM5//n2AGKav4iet4Z7mgFhW2QY+ddxaA1PE=; b=kcfwi1HSM9ci3p8WZD9L3LYtsZnMZHALq0yUhYI6EpDVF+G9y81nVzSL4uE/dDKYih uhI5lxm3++6Ny5MXsyBj/CnO7HkaClKt1Vi3eebfMmGytUzykfEEQXzDfcqAPk4zcyXE 3LvQE6RCrt5CNvAiL1yRZaD/lz7ItPEJQH+k2U8fMRpL01FdRNozSGT23Z/iOI9ceIhi IgSK3h1b0SQLjwlmEcF21kriyTC/FiApECTohT1G2mg2do1Mo8g+HEkx4jg6VdGZKyKp k/ESkA+sF5FJKyCnk0kDqjTVt2luJDUdlBzNvH20o4o6UXEeierRl8tfwvtVpQITpU1/ dyzw== X-Gm-Message-State: ALoCoQkz0uF+bBK01xAEM9QDOxtMaCqyo4MhcCEm6EWr4QzkioDyle+tjxEyQ09ipF5EQ1LX/Ptu X-Received: by 10.60.141.9 with SMTP id rk9mr43752092oeb.12.1398270253726; Wed, 23 Apr 2014 09:24:13 -0700 (PDT) Received: from localhost (216-177-191-101.block0.gvtc.com. [216.177.191.101]) by mx.google.com with ESMTPSA id pa3sm2650942obb.6.2014.04.23.09.24.12 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 23 Apr 2014 09:24:13 -0700 (PDT) From: MaDhAt2r To: sup-talk In-reply-to: <1398267413-sup-3348@zoe> References: <1398267413-sup-3348@zoe> Date: Wed, 23 Apr 2014 11:24:11 -0500 Message-Id: <1398270167-sup-4785@ArchNemesis> User-Agent: Sup/git Subject: Re: [sup-talk] Programmatically removing tags (:inbox) 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: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: sup-talk-bounces@rubyforge.org Errors-To: sup-talk-bounces@rubyforge.org Hey Alex, Try this: https://github.com/sup-heliotrope/sup/issues/272 Just use :inbox instead of :draft Excerpts from Alexander Klink's message of 2014-04-23 10:42:40 -0500: > Hi all, > > I am trying to archive all my existing mails in order to make a nicer > workflow for myself (sort of a GTD thing with reading mails, either > acting directly or tagging them with 'todo' or 'hold' depending on whether I > have to do something or am waiting for someone to reply). > > For this, I want to remove the :inbox tag from all mails in my index. > As a start I looked at https://github.com/sup-heliotrope/sup/issues/225 > and tried to reproduce what gauteh did in the console (with one single mail > which I gave a testfoo tag in sup): > > | q = Index.parse_query('label:testfoo') > | a = [] > | Index.each_message(q) { |x| a.push x } > | puts a # this should only contain one message if you only have one marked as draft > | m = a[0] # get the first message or find the problematic one > | m.labels.delete :testfoo > | m.sync_back > | exit > > Unluckily, both in sup and programmatically the mail still has the > testfoo tag. I also tried adding an Index.save_index before the exit, > but that didn't help either. > > Any ideas on how to achieve that goal (I am on 0.17.0 if that helps)? > > Cheers, > Alex _______________________________________________ sup-talk mailing list sup-talk@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-talk