aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/SendReport
Commit message (Collapse)AuthorAgeLines
* [UK] Deal with 2019 local government changes.Matthew Somerville2019-04-04-0/+20
|
* Make sure MapIt generation always used if given.Matthew Somerville2019-04-01-8/+0
|
* [Open311] Use cobrand hook for extra update paramsMatthew Somerville2019-03-08-0/+1
| | | | | The test has to now create a new comment object each time as `get_cobrand_logged` is cached on the object.
* [UK] send reports on highways agency roads to highways agencyStruan Donald2018-11-19-17/+44
| | | | | | | Includes an option to send to the council instead for e.g. reports on underpasses or bridges. Fixes #736
* [Angus] Remove cobrand.Matthew Somerville2018-10-10-167/+0
|
* Add get_cobrand_logged to Comment.Matthew Somerville2018-10-09-1/+1
|
* Add Blackhole send methodDave Arter2018-09-24-0/+20
|
* [Buckinghamshire] Update flytipping handling.Matthew Somerville2018-08-07-1/+3
| | | | | | Allow flytipping reporting on cobrand and .com, with road reports going to Bucks Confirm and email, and non-road reports going to district and Bucks emails.
* Use body_handler hook finding cobrand in SendReport::Email.Matthew Somerville2018-06-19-0/+2
|
* [TfL] Add SendReport plugin to ignore contact selection.Matthew Somerville2018-06-14-0/+23
|
* Make sure closest address stringified in extra.Matthew Somerville2018-05-14-1/+1
| | | | | 22f0fed0b made the closest address an object, and objects can’t be directly stored in the extra column.
* [BANES] Add Email::BathNES send method with custom template for street light ↵Dave Arter2018-04-10-0/+16
| | | | reports
* send easting/northing over open311 if send_notpinpointed and no map/postcodeStruan Donald2018-03-21-1/+3
| | | | | | If the map was not clicked and we don't have a postcode we should still send the easting and northing extra attributes if send_notpinpointed is set.
* send multiple photos over open311Struan Donald2018-03-15-0/+1
| | | | | | | | Per cobrand configurable option to send multiple photos over open311 instead of just a single one. Does this by sending multiple media_url parameters in the POST body. The default remains to send the first photo associated with a report.
* [Zurich] Switch to more modern database states.Matthew Somerville2018-03-07-4/+4
| | | | | | | The Zurich code was written a long time ago, and used overriding so that e.g. the hard-coded 'investigating' state referred to Wunsch (wish). Now that states are stored in the database, we can create ones specially for Zurich and use them instead. Hooray!
* Fix warning when sending reports from user with no emailDave Arter2018-02-09-1/+1
|
* Store all successful send methods.Matthew Somerville2017-12-13-2/+0
|
* In RSS, only escape the necessary five/ctrl chars.Matthew Somerville2017-10-02-1/+5
| | | | | | By default encode_entities uses named entities, which don't exist by default in XML. It seemed nicer to switch to only escaping the minimum rather than switching to numeric entities.
* Adapt things that assume email will be present.Matthew Somerville2017-09-30-2/+9
| | | | | | This includes stopping some emails being sent (moderation, alert, questionnaire), dealing with Open311/email report sending, and tokenised_url.
* Ensure easting/northing is sent over Open311 even if map isn’t usedDave Arter2017-09-26-1/+5
|
* Add inactive state to categories.Matthew Somerville2017-07-14-6/+4
| | | | | A new 'state' column replaces confirmed and deleted, allowing categories to be unconfirmed, confirmed, deleted or inactive.
* Stop using mySociety::Web and mySociety::Sundries.Matthew Somerville2017-07-06-4/+3
| | | | | Both uses can be covered by existing modules. This means we can drop FCGI also.
* [SeeSomething] Remove cobrand.Matthew Somerville2017-03-31-8/+1
|
* Use sender in From if From and To domains match.Matthew Somerville2017-03-14-1/+3
| | | | | | To deal with a recipient mail server not allowing inbound email using the same domain as an internal domain, e.g. https://community.mimecast.com/docs/DOC-1419
* Remove duplicate <> around envelope senders.Matthew Somerville2017-03-14-4/+1
|
* Refactor SendReport::Open311 to use cobrand hooks.Matthew Somerville2017-03-09-70/+14
| | | | | | | | | | | | | | Avoid doing cobrand-specific logic within SendReport::Open311. The hooks defined are: open311_config: set extra fields open311_pre_send: set endpoints and munge data These are tested in the new t/app/sendreport/open311.t, which does not send any actual reports, but just checks that all the data is munged into the expected format. (tests under t/open311* should already test the actual sending) Remove unused Open311 special cases.
* Add cobrand call_hook fn, calls a fn if defined.Matthew Somerville2017-02-15-1/+1
|
* Add a 'closest_address' hidden Open311 attribute.Matthew Somerville2017-02-03-0/+2
| | | | This joins easting, northing and an external ID field.
* Move staging flags to their own config variable.Matthew Somerville2017-01-10-1/+1
|
* Automatically spot Open311 co-ord/ID attributes.Matthew Somerville2016-08-24-39/+28
|
* Pass back Open311 request through send_reports for tests.Matthew Somerville2016-08-24-0/+7
|
* Add HTML email templates.Matthew Somerville2016-08-01-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | Design is all Zarino. This adds the ability to send HTML emails, including attached inline images. When included, this is done as a multipart/related email containing a multipart/alternative (of plain and HTML) and any attached images, so that the images are available even if HTML mail is not. The alert emails list data has been improved so it can be constructed in the templates rather than the code. Various templates have been tidied. Various workarounds for email clients have been made, including: * <th> is used so that the Android 4.x mail client can give them `block` styling in the small screen media query. * Font settings defined on every table cell (<th>) so that sans-serif fonts are used in Outlook, rather than Times New Roman. * A three-column wrapper table to create a 620px centred content area that also shrinks down on narrow screens. (Outlook doesn’t like max-width, so this is the simplest alternative.) * Enforcing a sensible (500px) min-width for the main content area, on clients that don’t support media queries (eg: native Gmail app). * Giant borders on buttons so Outlook displays them * Image alignment with align rather than float.
* Use only one templating system for emails.Matthew Somerville2016-05-25-14/+5
| | | | | | | Historically, emails sent offline (alerts, questionnaires, etc) used a different templating system from those sent by the website (e.g. login emails), though the newer system was also being used for the site name and signature of offline emails.
* Store Open311 error in report on failure.Matthew Somerville2016-04-27-3/+2
| | | | | | It will still output via cron on the first failure. However, reduce the verbosity of a couple of SendReport modules which are reporting failure every time.
* [UK] Remove West Berkshire temporary fix.Matthew Somerville2016-04-27-4/+0
|
* Remove some unused cobrands.Matthew Somerville2016-04-20-58/+2
|
* [Angus] Remove two unnecessary lines that caused Encode warningsDave Arter2016-03-29-2/+0
|
* [Angus] SOAP interface/send method for Angus CRMDave Arter2016-03-29-2/+174
|
* Better handle replies to bounce addresses.Matthew Somerville2016-02-23-8/+7
| | | | | | | | | | Auto unsubscribe alert bounces, forward on report bounces and alert replies to support, and send through to report creator non-bounce replies to their report (for systems that ignore both the From and Reply-To headers). Also forward any totally unparsed bounce to support to possibly then adjust this bounce handling.
* Remove many uses of mySociety::Config.Matthew Somerville2015-12-02-8/+7
|
* Move from Moose to Moo in non-App code.Matthew Somerville2015-12-02-7/+7
| | | | And create default cobrand class without all of Moose.
* Reduce use of FixMyStreet::App.Matthew Somerville2015-12-02-10/+7
| | | | Command line scripts don't need a full blown app, just database.
* Move EmailSend out of Catalyst for use elsewhere.Matthew Somerville2015-12-02-1/+2
|
* [Zurich] Updated email templatesMatthew Somerville2015-10-06-0/+10
| | | | | | | - submit-external-wish.txt includes a link with report's coordinates, template values are interpolated Conflicts: perllib/FixMyStreet/SendReport/Zurich.pm
* [Zurich] admin workflow changes available statesHakim Cassimally2015-10-06-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | See mysociety/FixMyStreet-Commercial#690 - external_message for Extern/Wunsch states - as per PDF mockups, the "public response" field is now editable from more states, namely: - Ruckmeldung ausstehend - Extern - Zustandigkeit unbekannt - Wunsch - Nicht kontaktierbar - Unsichtbar - test fixes NB: slight hack to reorder Zurich report_display tests As these remove 'investigating' from hidden_states, these break tests for default cobrand (the FMS::App code expects to be called once on request start, not multiple times within one test) - Not contactable button and tests for this and the similar `send_back` functionality (previously untested). NB: Unsure why we need to specify form_number=2 just for these submits, but test won't find the buttons otherwise. - Make sure SDMs' "time_spent" figure is recorded. (See mysociety/FixMyStreet-Commercial#718)
* Allow attachment of emails in email_sendHakim Cassimally2015-10-06-1/+6
| | | | Required by Zurich for mysociety/FixMyStreet-Commercial#675
* [fixmystreet.com] Remove unused Barnet code.Matthew Somerville2015-09-03-208/+0
|
* Test for DMARC when sending report email.Matthew Somerville2015-08-19-0/+7
|
* Merge branch 'issues/968-refusing-councils'Matthew Somerville2015-07-28-0/+7
|\
| * [fixmystreet.com] Unresponsive bodies page/warningMatthew Somerville2015-07-28-0/+7
| | | | | | | | | | | | | | | | | | Add a special category email address used to show an unresponsive message and page when trying to report in that category. Add a "Refused" send method for setting a whole body to be unresponsive and show the message immediately, not on category selection. Factor out category template, and put at top where needed.