save_post_by_email

NAML documentation   Watch a video
   Usages of this macro
... in save_post_by_email.naml
1
2
3
4
5
6
7
<override_macro name="save_post_by_email" requires="post_by_email" unindent="true">
    <n.comment
Macro
Parameters: text
.>Removed fix_threading to keep all replies under original post</n.comment.> 
    <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.not
Binary
Namespace: BasicNamespace
Parameters: condition
.mail_author
Binary
Namespace: PostByEmail
Parameters: do
.can_post_under
Macro
Requires: user
Parameters: node_attr
.replied_to_node
Binary
Namespace: PostByEmail
Parameters: do
>
        <then.throw_template_exception
Binary
Namespace: BasicNamespace
Parameters: name
 name="banned" />
    </n.if.not.mail_author.can_post_under.replied_to_node>
    <n.save_to_post
Binary
Namespace: PostByEmail
/>
</override_macro>
Overrides default 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>