Login  Register

Re: no link to subscribe for discussion in notification eMail

Posted by nnako on Apr 19, 2014; 12:05am
URL: https://support.nabble.com/no-link-to-subscribe-for-discussion-in-notification-eMail-tp7589503p7590074.html

Hi Pedro,

thanks for the code. Yes, I kind of get the idea. The links for subscription are working fine. Just the expression "<n.set_local_subscription.this_subscription/>" is not clear to me, as it makes no difference regarding the eMail output and it was not in my original code.

Here is my slightly modified macro code:
<override_macro name="instant_html" requires="subscription,node_page">
    <n.set_local_subscription.this_subscription/>
    <n.if.page_node.is_app>
        <then>
            <t><t.username.page_node.owner.name/> created a new subcategory</t>:
            <b><n.page_node.subject/></b><br/><br/>
        </then>
    </n.if.page_node.is_app>

    <n.page_node.html_email_message_with_signature/>
    <br/>
    <br/>
    <hr noshade="noshade" size="1" color="#cccccc" />
    <div style="color:#444; font: 12px tahoma,geneva,helvetica,arial,sans-serif;">
        <div style="font-weight:bold"><t>If you reply to this email, your message will be added to the discussion below</t>:</div>
        <a href="[n.page_node.url/]"><n.page_node.url/></a>
    </div>
    <div style="color:#666; font: 11px tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em;line-height:1.5em">
        <n.start_new_topic_line append="[br/]"/>
        <n.unsubscribe_line format="html"/><br/>
        To receive all subsequent posts by email, subscribe to this discussion by clicking <a href="[n.root_node.base_url/][n.page_node.topic_node.subscribe_path/]"> here</a>.<br/>
        <n.macro_viewer_email_link macro="instant_html"/>
    </div>
</override_macro>


I still see some problems. Maybe you could help me with one of those:

(1) the added text in the 4th last row starting with "To receive all subsequent..." is static and will so appear in EVERY notification eMail. Even for users which are already subscribed to the current sub forum. Is there a variable I could read out in order to see the status of subscriiption?

(2) when adding additional eMail recipients while posting a message in the forum, the notification footer (containing the new and the old subscription link) don't seem to be reasonable. Here, I added two eMail addresses of users who were not even registered with the forum:

The first "foreign" direct eMail recipient got TWO notification eMails with completely different footers (text of previous version):
[1]

[2]

The second "foreign" direct eMail recipient got only ONE notification eMail which was different to the other two:
[3]


Any ideas? For me, personally, problem (1) has a higher priority as it will be the standard usage.