foodsoft/plugins/messages
2017-02-15 23:47:10 +01:00
..
app Send messages only to users which have not been deleted 2017-02-15 23:47:10 +01:00
config Fix translations of messages plugin 2017-02-03 20:25:00 +01:00
db/migrate Add handling for message reply via email 2016-03-04 18:11:27 +01:00
lib Add reply_email_smtp_server task 2017-02-04 07:20:32 +01:00
foodsoft_messages.gemspec Add mini-smtp-server gem dependency 2017-02-04 07:17:17 +01:00
Rakefile Move plugins to separate directory. 2014-11-22 00:43:24 +01:00
README.md Add documentation for receiving mails to the README of the messages plugin 2017-02-15 10:41:03 +01:00

FoodsoftMessages

This plugin adds messages to foodsoft. A new 'Messages' menu entry is added below the 'Foodcoops' menu in the navigation bar.

This plugin is enabled by default in foodsoft, so you don't need to do anything to install it. If you still want to, for example when it has been disabled, add the following to foodsoft's Gemfile:

gem 'foodsoft_messages', path: 'lib/foodsoft_messages'

This plugin introduces the foodcoop config option use_messages, which can be set to false to disable messages. May be useful in multicoop deployments.

To allow members to respond to messages via email, you need the set the config option reply_email_domain and handle incoming mails via one of the following rake tasks. foodsoft:reply_email_smtp_server starts an SMTP server on the port given via the environment variable PORT and listens until a shutdown signal is received. If there is already a SMTP server for handling incoming mails you can also feed every mail via a call to foodsoft:parse_reply_email into foodsoft. It expects the address given in the MAIL FROM command via SMTP in the environment variable RECIPIENT and the mail body as STDIN.

This plugin is part of the foodsoft package and uses the GPL-3 license (see foodsoft's LICENSE for the full license text).