From: William Morgan <wmorgan-sup@masanjin.net>
To: sup-talk <sup-talk@rubyforge.org>
Subject: Re: [sup-talk] Ruby question: before-add-message.rb and adding multiple labels at once
Date: Sun, 17 Jan 2010 10:29:43 -0500 [thread overview]
Message-ID: <1263742014-sup-8127@masanjin.net> (raw)
In-Reply-To: <1263386714-sup-5331@sam.mediasupervision.de>
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 <wmorgan-sup@masanjin.net>
_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk
next prev parent reply other threads:[~2010-01-17 15:29 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-13 13:13 Gregor Hoffleit
2010-01-13 15:49 ` Eric Sherman
2010-01-15 15:51 ` Gregor Hoffleit
2010-01-17 15:29 ` William Morgan [this message]
2010-01-15 17:01 Gregor Hoffleit
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=1263742014-sup-8127@masanjin.net \
--to=wmorgan-sup@masanjin.net \
--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