... | in save_post_by_email.naml |
1 2 3 4 5 6 7 8 9 10 11 12
|
<override_macro name="save_post_by_email" requires="post_by_email" unindent="true">
<n.set_var. name='prefix'>[<n.replied_to_node.get_app_node.subject/>]</n.set_var.>
<n.set_new_post_subject.>
<n.regex_replace_all. pattern="(Re:\s*)+" replacement="Re: ">
<n.regex_replace_all. pattern="[n.regex_quote.var name='prefix'/]" replacement="">
<n.new_post_subject/>
</n.regex_replace_all.>
</n.regex_replace_all.>
</n.set_new_post_subject.>
<n.overridden/>
</override_macro>
|
... | in post_by_email.naml |
24 25 26 27 28 29 30
|
<macro name="save_post_by_email" requires="post_by_email" unindent="true">
<n.fix_threading/>
<n.if.not.mail_author.can_post_under.replied_to_node>
<then.throw_template_exception name="banned" />
</n.if.not.mail_author.can_post_under.replied_to_node>
<n.save_to_post/>
</macro>
|
Powered by Nabble | Edit this page |