There are forms that have "Send To" or whatnot in them that are supposed
to fill in the To: field of the message, but this wasn't working.
There were two issues:
Modify the split operation for msg_to and msg_cc to use a regular
expression with ' ', ';', and ',' per how the rest of the system works.
Signed-off-by: Corey Minyard <cminyard@mvista.com>
Add support for parsing To/Cc fields and passing an array
of addresses back to the compose window.
Improve handling of Msg. As per the templates [spec][]:
> Msg: -- Start of message body. All text following Msg: is placed in the body of the message.
and a few templates have text and variables on the same line as the "Msg:".
Therefore, simply strip out the Msg: and use that to mark the rest of
the template as being part of the body.
[spec]: http://www.philsherrod.com/Winlink/RMS_Express_Message_Templates.pdf
[Changed "var inBody = true" to "inBody := true" per Martin's
suggestion]
Signed-off-by: Corey Minyard <cminyard@mvista.com>
After af07b47b05, trying to launch a form from the compose dialog is broken. That's because the javascript functions are no longer in the global namespace, but clicking a form name was still using `onclick=onFormLaunching`. I had purged other uses of `onclick` from the HTML, but apparently not dynamically generated ones from the JS. I looked and didn't find any other problems in the same category.
* Deprecate `forms_path` in the config file and replace with `--forms` flag
* Clean up `optionsSet()` to show correct defaults
* Clean up places that detected when `forms_path` was not configured (before it had a default)
Resolves https://github.com/la5nta/pat/issues/287