I have subscribed to receive notification when a new comment is added but get an email saying something like:
"A blog to which you have subscribed has been updated." This should say "A blog to which you have subscribed has been commented upon".

The problem is that the same mail template is currently being used both for updates and for comments. I think we need to separate them.

Comments

salvis’s picture

There are three cases: new item, updated item, and commented item, as well as mixed forms.

You may have seen that there are new "boolean" variables, and there is a way to create conditional text in the templates. I have it working pretty well on some sites, but it requires an update to mail_edit that isn't published yet.

I'm still debating whether to leave the bare bones templates or replace them with advanced ones.

gustav’s picture

Thanks for drawing my attention to those boolean variables. How do I use them? Is there a description of this template syntax somewhere?

salvis’s picture

Get the just-updated mail_edit 1.1.

The syntax is

{{!varname==value?then_text:else_text}}
{{!varname!=value?then_text:else_text}}

The only restriction is that in the template value must not contain a question mark and the then_text no colon. And no premature '}}' of course. !varname, then_text and else_text can contain newlines, and the texts can also contain variables, of course.

Fix a minor bug in subscriptions_mail_template_preprocess() by replacing the 'else' with
elseif ($matches['operator'] == '!=')
This will be in the next beta, of course.

Have fun!

gustav’s picture

I think it would be very useful indeed if you could create more sophisticated templates that use the boolean variables to provide appropriate text for each of the possible cases (created, updated, commented). Many thanks!

reikiman’s picture

Hm, it would be nice to have documentation of the mail_editor module. In any case I'm making a comment to subscribe to this issue because my other issue was marked a duplicate of this one.

salvis’s picture

Version: 5.x-2.0-beta4 » 5.x-2.0-beta8
Status: Active » Fixed

We now have polished default templates -- they're pretty much the way I like them... :-)

If you've customized yours, you need to delete them manually from the database (mail_edit and subscriptions_mail_edit tables) in order to see the new default templates. Alternatively, you can copy/paste the new ones from subscriptions_mail.templates.inc.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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