Archive of RubyForge sup-talk mailing list
 help / color / mirror / Atom feed
* [sup-talk] Can't figure out how to use aliases
@ 2008-11-05 15:08 Steve Goldman
  2008-11-06 19:49 ` William Morgan
  0 siblings, 1 reply; 4+ messages in thread
From: Steve Goldman @ 2008-11-05 15:08 UTC (permalink / raw)



I can't get sup to replace an alias with its email address when I send
To: an alias.  This is really confusing.

Thanks.
-- 

Steve Goldman
sgoldman at tower-research.com

T: 212.219.6014
F: 212.219.6007

Tower Research Capital, LLC
377 Broadway, 11th Fl.
New York, NY 10013


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [sup-talk] Can't figure out how to use aliases
  2008-11-05 15:08 [sup-talk] Can't figure out how to use aliases Steve Goldman
@ 2008-11-06 19:49 ` William Morgan
  2008-11-06 20:15   ` Steve Goldman
  0 siblings, 1 reply; 4+ messages in thread
From: William Morgan @ 2008-11-06 19:49 UTC (permalink / raw)


Reformatted excerpts from Steve Goldman's message of 2008-11-05:
> I can't get sup to replace an alias with its email address when I send
> To: an alias.  This is really confusing.

This should happen automagically, if you enter the alias either when
Sup prompts you, or if it's on a To/Cc/Bcc line when you exit the editor
and return to Sup.

Are you sure you're typing in the right alias?
-- 
William <wmorgan-sup at masanjin.net>


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [sup-talk] Can't figure out how to use aliases
  2008-11-06 19:49 ` William Morgan
@ 2008-11-06 20:15   ` Steve Goldman
  2008-11-07 18:46     ` Steve Goldman
  0 siblings, 1 reply; 4+ messages in thread
From: Steve Goldman @ 2008-11-06 20:15 UTC (permalink / raw)


Testing it out, it seems to be a casing issue.  When the alias I
choose is all lowercase, it works.  Looks like when sup throws me into
my editor to compose the email, it lower cases the entire alias.  Then
when it comes back out, it can't match the lower cased alias if the
alias had upper case letters.


Excerpts from William Morgan's message of Thu Nov 06 14:49:47 -0500 2008:
> Reformatted excerpts from Steve Goldman's message of 2008-11-05:
> > I can't get sup to replace an alias with its email address when I send
> > To: an alias.  This is really confusing.
> 
> This should happen automagically, if you enter the alias either when
> Sup prompts you, or if it's on a To/Cc/Bcc line when you exit the editor
> and return to Sup.
> 
> Are you sure you're typing in the right alias?
-- 

Steve Goldman
sgoldman at tower-research.com

T: 212.219.6014
F: 212.219.6007

Tower Research Capital, LLC
377 Broadway, 11th Fl.
New York, NY 10013


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [sup-talk] Can't figure out how to use aliases
  2008-11-06 20:15   ` Steve Goldman
@ 2008-11-07 18:46     ` Steve Goldman
  0 siblings, 0 replies; 4+ messages in thread
From: Steve Goldman @ 2008-11-07 18:46 UTC (permalink / raw)


diff --git a/lib/sup/buffer.rb b/lib/sup/buffer.rb
index ebc3587..0447f61 100644
--- a/lib/sup/buffer.rb
+++ b/lib/sup/buffer.rb
@@ -506,7 +506,7 @@ EOS
     answer = BufferManager.ask_many_emails_with_completions domain, question, completions, default

     if answer
-      answer.split_on_commas.map { |x| ContactManager.contact_for(x.downcase) || PersonManager.person_for(x) }
+      answer.split_on_commas.map { |x| ContactManager.contact_for(x) || PersonManager.person_for(x) }
     end
   end

We shouldn't downcase names before we look them up in the alias to
person hash since the keys of that hash are case sensitive.  This
brings up a more philosophical question of whether keys in that hash
SHOULD be case sensitive.  What does it mean to have two aliases
"Steve" and "steve"?


Excerpts from Steve Goldman's message of Thu Nov 06 15:15:15 -0500 2008:
> Testing it out, it seems to be a casing issue.  When the alias I
> choose is all lowercase, it works.  Looks like when sup throws me into
> my editor to compose the email, it lower cases the entire alias.  Then
> when it comes back out, it can't match the lower cased alias if the
> alias had upper case letters.
> 
> Excerpts from William Morgan's message of Thu Nov 06 14:49:47 -0500 2008:
> > Reformatted excerpts from Steve Goldman's message of 2008-11-05:
> > > I can't get sup to replace an alias with its email address when I send
> > > To: an alias.  This is really confusing.
> > 
> > This should happen automagically, if you enter the alias either when
> > Sup prompts you, or if it's on a To/Cc/Bcc line when you exit the editor
> > and return to Sup.
> > 
> > Are you sure you're typing in the right alias?
> -- 
> 
> Steve Goldman
> sgoldman at tower-research.com
> 
> T: 212.219.6014
> F: 212.219.6007
> 
> Tower Research Capital, LLC
> 377 Broadway, 11th Fl.
> New York, NY 10013
-- 

Steve Goldman
sgoldman at tower-research.com

T: 212.219.6014
F: 212.219.6007

Tower Research Capital, LLC
377 Broadway, 11th Fl.
New York, NY 10013


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-11-07 18:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-05 15:08 [sup-talk] Can't figure out how to use aliases Steve Goldman
2008-11-06 19:49 ` William Morgan
2008-11-06 20:15   ` Steve Goldman
2008-11-07 18:46     ` Steve Goldman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox