Problem/Motivation

Notify let users select how much of a post to include in a notification. The alternatives are:

  1. Title only
  2. Title + Teaser/Excerpt
  3. Title + Body
  4. Title + Body + Fields

However, whatever setting is choosen, what is sent is "Title only".

Steps to reproduce

Set up a user with one of the other options. Trigger a notification. Observe that option is ignored.

Proposed resolution

Remove this feature/option, and always send notifictions by "title only".

This appears to be the option that see the most use. The three other options also have issues with formatting, when a HTML-formatted body, etc. is sent in a plain text email.

Remaining tasks

I am going to leave this open for discussion by the project's users for two weeks. If there are not significant opposition to removing this feature, it will be removed.

Comments

gisle created an issue. See original summary.

cbeem’s picture

In my case I do not require anything other that the title.
In /src/form/usersettings.php I have done this as a temporary fix to hide non functioning options to the user:

Line 152

$form['notify_page_detailed']['teasers'] = [
'#type' => 'radios',
'#title' => $this->t('How much to include?'),
'#default_value' => $notify->teasers,
'#options' => [
$this->t('Title only'),
//$this->t('Title + Teaser/Excerpt'),
//$this->t('Title + Body'),
//$this->t('Title + Body + Fields'),
],
'#description' => $this->t(' '),

I have then changed all entries in the database to "Title only". Actually, in the entire history of the Drupal 7 site, only one user had ever chosen another option to "Title only".

Thx

gisle’s picture

If you use this project, please review the plan outlined in the issue summary. State whether you agree or disagree. If you disagree, also say why this feature should remain.

The current maintainer has no use for this feature, and wants to remove it. It is rather complex to implement, given the the fact that nodes are HTML, while notifications are plain text.

If the conclusion is that it should stay, it will need the community to produce the patches required for it to be implemented. I'm not going to work on this myself.

If it is to be removed, the cleanup will happen immedately after the stipulated two weeks discussion.

gisle’s picture

Title: "How much to send?" settings ignored » Remove "How much to send?" settings

Changed title to reflect proposed solution.

larisse’s picture

StatusFileSize
new13.17 KB

Hi! I created a patch to this issue.

gisle’s picture

Status: Needs review » Needs work

Patch in comment#6 applies cleanly.

However, it misses out on the following:

  • Removes the teaser field from hook_schema(), but does not implement hook_update_N() to update legacy databases.
  • Does not remove the unused column head and reference to "How much" in the text below the table in UsersForm.php.
gisle’s picture

Status: Needs work » Needs review
StatusFileSize
new14.45 KB
new1.75 KB

New patch, fixing the problems reported in comment #6. Please review.

  • gisle authored 3c77c99 on 2.0.x
    Issue #3221733 by gisle, larisse: Removed How much to send-settings
    
gisle’s picture

Status: Needs review » Fixed

Pushed to the latest snapshot of 2.0.x-dev.

larisse’s picture

Hi @gisle!
Sorry for the reported absences and thanks for the fixed. I'll pay more attention for next patch.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

gisle’s picture

Version: 2.0.x-dev » 7.x-1.x-dev
Assigned: Unassigned » gisle
Status: Closed (fixed) » Patch (to be ported)

This should also be done for the Drupal 7 version.

Use case for this is GDPR. The node sometimes contains personal data, and email is not always sent encrypted unless the site's MTA is set up with Enforce TSL. Also: Some European users use mail systems located outside the EU (e.g. GMail) that are subject to laws like the US Patriot Act that overrule the protections and freedoms EU citizens should enjoy. The only way to make this module GDPR compliant is to make sure that no personal data is sent in unencrypted emails.

Beside, The "Title" only option covers the main use case of this module (to alert about new content on a webside) well enough, and is the option that most users seem to prefer.

  • gisle authored 7b9ef41 on 7.x-1.x
    Issue #3221733 by gisle: Removed How much to send settings
    
gisle’s picture

Status: Patch (to be ported) » Fixed

This is now in the latest snapshot of 7.x-1.x.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.