From f65169478880c0450af86317ff2f77270642991d Mon Sep 17 00:00:00 2001 From: Jimmy Monin Date: Sat, 12 Oct 2019 10:48:48 +0200 Subject: [PATCH] Upgrade to upstream version 2.3.5 --- README.md | 20 +++++++++++++++++++- conf/app.src | 4 ++-- manifest.json | 2 +- 3 files changed, 22 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 7ec7c73..0d560b7 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ Finally, if installing on a low-end ARM device (e.g. Raspberry Pi): To learn more about the philosophy and goals of the project, [visit **discourse.org**](http://www.discourse.org). -**Shipped version:** 2.3.4 +**Shipped version:** 2.3.5 ## Screenshots @@ -59,6 +59,24 @@ Use the admin panel of your discourse to configure this app. You should now be able to start testing. Try using the `/admin/email` "Send Test Email" and then view the "Sent" or "Skipped" etc. tabs. You should see a report on what happened with the email. You may also want to look in `/var/www/discourse/log/production.log` as well as `/var/www/mail.err`. You should perhaps also use [Rainloop](https://github.com/YunoHost-Apps/rainloop_ynh) or another Yunohost email client application to quickly test that both your user and the dedicated Yunohost Discourse user (`response@...`) is receiving mail. +### "Reply-By-Email" and mail forwarding + +If you use the administration UI in YunoHost to setup a mail forwarding address for your users then you may face the problem whereby your users are replying by email from the forwarded email address and the Discourse software is not able to understand how to receive that email. + +For example, your user has email address `foo@myyunohostdomain.org` and all mail is forwarded to `foo@theirexternalmail.com`. Discourse receives replies from `foo@theirexternalmail.com` but cannot understand how to deliver this to the user account with `foo@myyunohostdomain.org` configured. + +Their is on-going work to allow for [multiple email addresses for one user](https://meta.discourse.org/t/additional-email-address-per-user-account-support/59847) in Discourse development but at current major version (2.3 as of 2019-08-06), there is no web interface for this functionality. It is possible to set it up via the command-line interface but it is **experimental** and you should not undertake this work unless you take some time to understand what it is you are going to do. + +Here's how to setup a secondary mail address for a user account: + +```bash +$ cd /var/www/discourse +$ RAILS_ENV=production /opt/rbenv/versions/2.6.0/bin/bundle exec rails c +$ UserEmail.create!(user: User.find_by_username("foo"), email: "foo@theirexternalmail.com") +``` + +Discourse can now receive mail from `foo@theirexternalmail.com` and give it to the user account with mail address `foo@myyunohostdomain.org`. + ## Documentation * Official documentation: https://www.discourse.org/ diff --git a/conf/app.src b/conf/app.src index cf79de8..7607f1c 100644 --- a/conf/app.src +++ b/conf/app.src @@ -1,3 +1,3 @@ -SOURCE_URL=https://github.com/discourse/discourse/archive/v2.3.4.tar.gz -SOURCE_SUM=dfac720cd2d7188590af2f6fc0dbd69bd4815fd990a23a5c6076cf30ecc0aa06 +SOURCE_URL=https://github.com/discourse/discourse/archive/v2.3.5.tar.gz +SOURCE_SUM=e2b1d3c115e6aa54a492334153ed4c0631508869e301bf8ca2a3d615fe97fbb7 SOURCE_FORMAT=tar.gz diff --git a/manifest.json b/manifest.json index 2fb6168..c600c2c 100644 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "en": "Discussion platform", "fr": "Plateforme de discussion" }, - "version": "2.3.4~ynh1", + "version": "2.3.5~ynh1", "url": "http://Discourse.org", "license": "GPL-2.0", "maintainer": {