Slack's service integration instructions now only show Webhook URL, so
this should be reasonable for new users.
For compatibility, allow an existing pair of `team_name` and
`auth_token` to still work.
I wasn't aware enough that Net::IMAP#fetch_internal may return nil. We
have a dedicated subclass of Net::IMAP, so override the behavior there.
Fixes#602.
An Atom/RSS entry usually has just one URL, and even if it has many only
the first of those is likely to be of interest.
Emitting an event with `url` also helps downstream agents like
WebsiteAgent that uses the key name to get a URL to crawl.
When uploading a file, web browsers do not specify a charset in
Content-Type because it is usually unknown and you cannot assume it
matches the form encoding. Here's a fragment of multipart headers
Firefox will send:
```
Content-Disposition: form-data; name="scenario_import[file]"; filename="example.json"
Content-Type: application/json
```
This causes the scenario import to fail with the following error because
of an uploaded blob being treated as ASCII-8BIT:
```
ActionView::Template::Error (incompatible character encodings: ASCII-8BIT and UTF-8):
18: <% if @scenario_import.step_one? %>
19: <%= render 'step_one', :f => f %>
20: <% elsif @scenario_import.step_two? %>
21: <%= render 'step_two', :f => f %>
22: <% end %>
23: <% end %>
24:
app/views/scenario_imports/new.html.erb:21:in `block in _app_views_scenario_imports_new_html_erb___4262128004129331542_17292895160'
app/views/scenario_imports/new.html.erb:15:in `_app_views_scenario_imports_new_html_erb___4262128004129331542_17292895160'
app/controllers/scenario_imports_controller.rb:17:in `create'
config/initializers/silence_worker_status_logger.rb:5:in `call_with_silence_worker_status'
```
Currently it works as a reload button, but it gives you nothing but
dismissing the indicator unless you are on the events page, and in any
case you have no idea which events are newly created.
With this change, clicking the indicator takes you to the events page on
which newly created events are highlighted.