On Tue, Jul 18, 2017 at 9:23 PM, Craig Russell <[email protected]> wrote:
>
> So no need to change anything.

I'll leave it alone for now.

> I understand. I'm not faulting the tool, but my own inadequacies. It's easy 
> to parse the do...end and the map:iterations. Even the message.reply (143 in 
> icla.json.rb). But the message processing at line 76  
> a/www/board/agenda/views/actions/todos.json.rb is a complete mystery.

https://github.com/apache/whimsy/blob/9ccb0cdfe0a5a8aa40e73be80dc51c4f325a90bd/www/board/agenda/views/actions/todos.json.rb#L75

I'm creating a mail object, setting from, to, subject, and body, then
delivering it.

Within a double quoted string, #{expression}" is evaluated much as
"<%= expression %>" in JSP.

For the 'to' address, I specify an array.  For the others, simple strings.

FYI: those lines (76-80) are method calls on the object being
constructed.  Parenthesis are generally optional in method calls in
Ruby.  So the first line is equivalent to:

from(sender.public_name + " <" + sender.id + "@apache.org>")

> Craig

- Sam Ruby

Reply via email to