should_get_instant_mail

NAML documentation   Watch a video
   Usages of this macro
The source code below doesn't have navigation links because no usage has been compiled yet. Navigation links depend on how and where the macro is used, so first you may try finding all usages of "should_get_instant_mail".
... in should_get_instant_mail.naml
1
2
3
4
5
6
<override_macro name="should_get_instant_mail" requires="user,node_page" >
    <n.set_local_user.this_user/>
    <n.block.>
        <n.local_user.can_view.page_node />
    </n.block.>
</override_macro>
Overrides default macro
... in email.naml
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<macro name="should_get_instant_mail" requires="user,node_page" >
    <n.set_local_user.this_user/>
    <n.block.>
        <n.both>
            <condition1.local_user.can_view.page_node />
            <condition2.not.>
                <n.both>
                    <condition1.page_node.owner.equals.local_user />
                    <condition2.equal value1="[n.page_node.message.format/]" value2="mail" />
                </n.both>
            </condition2.not.>
        </n.both>
    </n.block.>
</macro>