From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.213.28.69 with SMTP id l5cs327073ebc; Sun, 17 Jan 2010 07:29:49 -0800 (PST) Received: by 10.224.115.84 with SMTP id h20mr3726028qaq.289.1263742188249; Sun, 17 Jan 2010 07:29:48 -0800 (PST) Return-Path: Received: from rubyforge.org (rubyforge.org [205.234.109.19]) by mx.google.com with ESMTP id 5si3806549qwg.8.2010.01.17.07.29.46; Sun, 17 Jan 2010 07:29:48 -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 Received: from rubyforge.org (rubyforge.org [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id 2E48F1779942; Sun, 17 Jan 2010 10:29:46 -0500 (EST) Received: from entry.masanjin.net (masanjin.net [209.20.72.13]) by rubyforge.org (Postfix) with ESMTP id B882418581EF for ; Sun, 17 Jan 2010 10:29:43 -0500 (EST) Received: from w by entry.masanjin.net with local (Exim 4.69) (envelope-from ) id 1NWX4R-0001o2-Ip for sup-talk@rubyforge.org; Sun, 17 Jan 2010 10:29:43 -0500 From: William Morgan To: sup-talk In-reply-to: <1263386714-sup-5331@sam.mediasupervision.de> References: <1263386714-sup-5331@sam.mediasupervision.de> Date: Sun, 17 Jan 2010 10:29:43 -0500 Message-Id: <1263742014-sup-8127@masanjin.net> User-Agent: Sup/git Subject: Re: [sup-talk] Ruby question: before-add-message.rb and adding multiple labels at once 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 Reformatted excerpts from Gregor Hoffleit's message of 2010-01-13: > Still, perhaps somebody with robust Ruby skills could add in a section > about the exact usage of message.add_label and message.remove_label, > e.g.: > > - What's the difference between "label" and :label? Nothing. Strings get turned into symbols automagically and so both will add the label :label. > - Can I use multiple labels in one invocation? No. > - How about dashes in labels? Is :sup-devel valid, or should I use > :"sup-devel"? The latter is necessary, but only because of Ruby's syntax. You can also use "sup-devel", of course. > - How about spaces in label? Same as with -'s. > - How about "-inbox"? Does it work? It will work but will give you weird errors later on down the road as punishment for being tricky. :) -- William _______________________________________________ sup-talk mailing list sup-talk@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-talk