Patrick Gansterer
97abcabffa
Log mail delivery errors to database and add an UI for it
2017-10-02 16:02:39 +02:00
wvengen
0363f2dadc
Improve Docker setup (PR #497 )
2017-10-01 13:57:36 +02:00
Patrick Gansterer
01950b48a1
Add Discourse SSO to allow login into Discourse via Foodsoft
2017-10-01 00:48:05 +02:00
wvengen
b5e5d7d246
Add Docker Hub badge
2017-10-01 00:29:56 +02:00
wvengen
5ca61dca82
Bundle update
2017-10-01 00:23:10 +02:00
Patrick Gansterer
a10aa75f49
Improve user interface for creating new messages in messages plugin
2017-10-01 00:12:10 +02:00
Patrick Gansterer
185f682f6c
Remove useless text from received mails via the email_reply_trimmer gem
2017-09-30 18:06:03 +02:00
Patrick Gansterer
ecdf3bc147
Add simple support for receiving HTML mails
...
Create a plain text document by removing all HTML tags with Nokogiri.
2017-09-30 18:01:26 +02:00
Patrick Gansterer
7d594bf391
Move SMTP server from messages plugin into core
2017-09-30 13:44:04 +02:00
Patrick Gansterer
2264351cf5
Remove code duplication for catching errors when sending mails
2017-09-30 12:20:17 +02:00
Patrick Gansterer
0ed3b7b7c3
Align MessagesMailer argument order with Mailer
2017-09-30 12:14:16 +02:00
Patrick Gansterer
d93aa23d1c
Avoid disclosure of internal hostname via Message-ID header of mails
...
Use the host of default_url_options for generating that header instead.
2017-09-30 12:14:16 +02:00
Patrick Gansterer
3f7efbc4b9
Move code for sending the messages from model to MessageNotifier
2017-09-30 12:14:16 +02:00
Patrick Gansterer
add281c738
Remove email from subject of feedback mail
...
The mail address of the user sending the feedback is now set in the
Reply-To header of the mail already.
2017-09-30 12:14:16 +02:00
Patrick Gansterer
c71b91a32f
Allow User objects in From mail field and set Reply-To if not set already
2017-09-30 12:14:16 +02:00
Patrick Gansterer
b5c9634315
Allow User objects in Bcc, Cc Reply-To, Sencer and To mail fields
2017-09-30 12:14:16 +02:00
Patrick Gansterer
04bf994c9a
Override the mail method of Mailer to automatically add the foodcoop name
2017-09-30 12:14:16 +02:00
Patrick Gansterer
96a01daa34
Set the X-Auto-Response-Suppress header for all outgoing mails
...
Since Foodsoft can not forward any auto responses to the relevant users
it makes sense to tell MTAs to avoid them at all.
2017-09-30 12:14:15 +02:00
Patrick Gansterer
639a99fcfb
Match the From for mails with the implementation in the messages plugin
2017-09-30 12:14:15 +02:00
Patrick Gansterer
0785eb2f22
Do not set :sender and :errors_to when sending mails
...
:sender matches :from in all relevant cases, while :errors_to is an
invalid (and very very outdated) option.
2017-09-30 12:14:15 +02:00
Patrick Gansterer
43c1833cd7
Set ActionMailer configuration in FoodsoftConfig
2017-09-30 12:14:15 +02:00
Patrick Gansterer
e6e8c845cd
Cleanup notify_users_of_weekly_task
2017-09-30 12:11:44 +02:00
Patrick Gansterer
7bb5e74e0c
Fix mailer/not_enough_users_assigned view
2017-09-30 12:07:47 +02:00
Patrick Gansterer
ba052efe5e
Set the path of the _foodsoft_session cookie to the slug
...
This allows the usage of different foodcoops at the same time.
2017-09-29 00:47:00 +02:00
Patrick Gansterer
ac00942f34
Fix list of invoices when an invoice has an invalid created_by user
2017-09-26 13:13:20 +02:00
Patrick Gansterer
43294a40f5
Fix page version view for the case when a user has been deleted
2017-09-26 13:11:58 +02:00
Patrick Gansterer
b3a6884cf1
Remove FoodsoftConfig[:name] from received mails
2017-09-26 01:08:52 +02:00
Patrick Gansterer
52dc7b1387
Raise a RoutingError for unknown foodcoop in multi_coop_installs
...
This gives the correct error code for request to files in the root
folder (e.g. /apple-touch-icon.png), which do not exist.
2017-09-25 10:16:03 +02:00
Patrick Gansterer
0edc780ec7
Add Discourse plugin
2017-09-22 13:58:00 +02:00
Patrick Gansterer
f8662c9184
Redirect to root_url of default_scope when no slug is given
2017-08-29 23:40:48 +02:00
Patrick Gansterer
6185e18cc5
Notify users also about tasks which are not on sundays (PR #494 )
...
notify_users_of_weekly_task notifies workgroups about tasks with and due
date of 7 days in the future. Call it every day to notify users of all tasks.
2017-08-21 16:01:36 +02:00
Patrick Gansterer
329ac66cf1
Show only undeleted users in user select input fields (PR #486 )
2017-08-21 11:27:02 +02:00
Patrick Gansterer
8798b886db
Fix mailing of order_result (PR #493 )
2017-08-21 11:17:54 +02:00
Patrick Gansterer
c6297f2864
Sort workgroups of tasks by name
2017-08-20 01:08:47 +02:00
Patrick Gansterer
6a110ca429
Show the Help link only when a help_url is set
2017-08-20 01:07:48 +02:00
Patrick Gansterer
2b1056687a
Install thin gem always to have an production server for the Docker setup
2017-08-08 23:45:29 +02:00
Patrick Gansterer
251681bb66
Add option to configure SMTP server via environment variables in production.rb
2017-08-08 23:27:28 +02:00
Patrick Gansterer
d6325de35c
Add support for RAILS_SERVE_STATIC_FILES to production.rb an use it with Docker
2017-08-08 23:27:28 +02:00
Patrick Gansterer
42b789d381
Create config/initializers/secret_token.rb in Dockerfile
...
Set the secret_token to ENV['SECRET_KEY_BASE'] in that file.
2017-08-08 23:27:28 +02:00
Patrick Gansterer
2c180cc9e8
Set BUNDLE_APP_CONFIG and DATABASE_URL in crontab when defined
2017-08-08 23:27:27 +02:00
Patrick Gansterer
3010dd2d90
Redirect log/production.log to /dev/stdout in Docker setup
2017-08-08 23:27:27 +02:00
Patrick Gansterer
5bc9becf9a
Use a temporary mysql-server for assets precompilation during Docker build
2017-08-08 23:27:27 +02:00
wvengen
af1243ebea
Fix database issue on Travis CI
...
Apparently the travis user is restricted now, and something changed with
character sets. https://dev.mysql.com/doc/refman/5.7/en/charset-applications.html
2017-08-04 17:21:57 +02:00
Patrick Gansterer
c3a49e4260
Remove unused libraries and files from Docker image
2017-08-03 00:16:51 +02:00
Patrick Gansterer
5903b4d601
Use SOURCE_COMMIT environment variable for REVISION file during Docker build
2017-07-31 23:39:13 +02:00
wvengen
6fddef354d
Bundle update nokogiri and mail (CVE-2017-5029, CVE-2015-9097)
2017-07-31 23:32:19 +02:00
Patrick Gansterer
64bda5da27
Create REVISION file for Docker container
2017-07-31 23:08:55 +02:00
Patrick Gansterer
fa32fc9229
Dockerfile for production
2017-07-31 23:08:55 +02:00
wvengen
03256d28dd
Merge pull request #479 from foodcoop1040/default_scope
...
Fall back to default_scope if an invalid foodcoop is provided
2017-07-12 20:47:24 +02:00
Patrick Gansterer
c312bd5ebd
Fall back to default_scope if an invalid foodcoop is provided
...
Before this change foodsoft redirect to the last active foodcoop, when
an invalid foodcoop is provided. After this change the default_scope
will be used all the time to avoid data disclosure.
2017-07-08 00:09:42 +02:00