Re: feature request html -> text conversion
Posted by
Hugo <Nabble> on
Sep 21, 2012; 3:18am
URL: https://support.nabble.com/feature-request-html-text-conversion-tp6425065p7581389.html
Greg, let me try to explain this a bit better. The system searches for subscriptions bottom-up. To understand this, let's consider the creation of a new post. After the post is created, the system will check who is subscribed to that topic and send the notifications to those people. After that, it will check the parent app and look for subscriptions that should receive that post. It keeps going up like that until it reaches the root node. Since you selected the "Alert me by email when someone posts to this thread" checkbox (which subscribes the user to the topic), that subscription will be found first. Now let's have a look at the macro that prints the "To start a new topic..." line:
<macro name="start_new_topic_line" parameters="append" requires="subscription">
<n.set_local_subscription.this_subscription/>
<n.if.both condition1="[n.local_subscription.node.is_app/]" condition2="[n.local_subscription.user.can_reply_to.local_subscription.node/]">
<then>
<t>To start a new topic under <t.location.local_subscription.node.subject/>, email <t.p2.local_subscription.node.user_address email="[n.local_subscription.user.user_email/]"/></t> <n.hide_null.append/>
</then>
</n.if.both>
</macro>
See the if-statement in the third line. It fails for topic subscriptions (because the subscription node is not an app, it is a topic/post). If you want to have that line displayed in all emails, you can remove that if-statement and it will work. Please let me know if you have questions, comments or concerns.