On Mon, Apr 10, 2017 at 1:48 PM, Craig Russell <[email protected]> wrote:
> I think the problem is that the message contained only the email address in
> the From: field.
>
> From: [email protected]
>
> What I'd like in this case is for the Real Name and Public Name form fields
> to be blank and the E-mail form field to contain [email protected].
>
> Looks like the processing is around here:
>
> name = @@headers.name
>
> # reorder name if there is a single comma present
> parts = name.split(',')
You are exactly right.
If you were to go to your JavaScript console, you would see something
like "Uncaught TypeError: Cannot read property 'split' of null". You
might even see icla.js.rb:90 if things are working correctly (I've had
best results with Chrome, inconsistent results with Firefox, and
haven't tried the devtools on Safari lately).
If you were to click on icla.js.rb:80, you will go to exactly the
"parts = name.split(',')" line above.
What likely will fix this is changing the name = line above to:
name = @@headers.name || ''
(That's two single quotes. Two double quotes would also work)
Give that a try!
- Sam Ruby