save_post_by_email.naml

<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>