Login  Register

Re: Automatic Out of Office Notices create issues

Posted by Pedro on Apr 08, 2014; 3:42am
URL: https://support.nabble.com/Automatic-Out-of-Office-Notices-create-issues-tp7589455p7589998.html

Now is clear!

I'm not sure if you can set which emails will be auto answered. At least, I don't know how to do it at gmail.

To change the Header to the author of the message, please, merge this code with yours:
<override_macro name="send_subscription_email" parameters="node_attr,text_part,html_part" requires="subscription">
    <n.set_local_subscription.this_subscription/>
    <n.set_local_node.node_attr/>
    <n.block.>
        <n.if.equal value1="[n.local_subscription.user.user_email/]" value2="[n.local_node.owner.user_email/]">  
            <then>
                <n.new_email.>
                    <n.send>
                        <to.local_subscription.user.user_email/>
                        <to_name.local_subscription.user.name/>
                        <from.local_subscription.user.reply_address_for.local_node/>
                        <from_name><n.local_node.owner.name/> [via <n.root_node.subject/>]</from_name>
                        <subject.>[Own Message] - <n.local_node.subject/></subject.>                        
                        <text_part.text_part/>
                        <html_part.html_part/>
                        <set_headers_for.local_node/>
                        <bounce_to.local_subscription.user.bounces_address/>
                    </n.send>
                </n.new_email.>
                </then>
            <else>
                
                <n.new_email.>
                    <n.send>
                        <to.local_subscription.user.user_email/>
                        <to_name.local_subscription.user.name/>
                        <from.local_subscription.user.reply_address_for.local_node/>
                        <from_name><n.local_node.owner.name/> [via <n.root_node.subject/>]</from_name>
                        <subject.local_node.subject/>
                        
                        <text_part.text_part/>
                        <html_part.html_part/>
                        <set_headers_for.local_node/>
                        <bounce_to.local_subscription.user.bounces_address/>
                    </n.send>
                </n.new_email.>
                
            </else>
        </n.if.equal>  

    </n.block.>
</override_macro>

PS: Note that, this solution is changing the subject, I'm not dealing with headers.
My test forum.