diff --git a/src/freedombone-app-xmpp b/src/freedombone-app-xmpp index ad6f7a3c..ad82854c 100755 --- a/src/freedombone-app-xmpp +++ b/src/freedombone-app-xmpp @@ -97,6 +97,11 @@ function update_prosody_modules { if [ -d $INSTALL_DIR/prosody-modules/mod_privacy_lists ]; then cp $INSTALL_DIR/prosody-modules/mod_privacy_lists/*.lua /usr/lib/prosody/modules fi + + # If offline then send messages to email + if [ -d $INSTALL_DIR/prosody-modules/mod_offline_email ]; then + cp $INSTALL_DIR/prosody-modules/mod_offline_email/*.lua /usr/lib/prosody/modules + fi } function upgrade_xmpp { @@ -315,6 +320,7 @@ function install_xmpp_main { echo ' "privacy_lists"; -- Privacy lists' >> /etc/prosody/conf.avail/xmpp.cfg.lua echo ' "blocking"; -- Blocking command' >> /etc/prosody/conf.avail/xmpp.cfg.lua echo ' "roster"; -- Roster versioning' >> /etc/prosody/conf.avail/xmpp.cfg.lua + echo ' "offline_email"; -- If offline send to email' >> /etc/prosody/conf.avail/xmpp.cfg.lua echo '}' >> /etc/prosody/conf.avail/xmpp.cfg.lua echo '' >> /etc/prosody/conf.avail/xmpp.cfg.lua echo 'c2s_require_encryption = true' >> /etc/prosody/conf.avail/xmpp.cfg.lua