0
|
1 <macro name="notify_subscribers" requires="node">
|
|
2 <n.get_instant_emails.new_node.as_node_page.instant_emails />
|
|
3 </macro>
|
|
4
|
|
5 <macro name="instant_emails" requires="instant_mail,node_page">
|
|
6 <n.subscription_list.loop.>
|
|
7 <n.if.current_subscription.user.should_get_instant_mail>
|
|
8 <then.current_subscription.send_instant_email />
|
|
9 </n.if.current_subscription.user.should_get_instant_mail>
|
|
10 </n.subscription_list.loop.>
|
|
11 </macro>
|
|
12
|
|
13 <macro name="should_get_instant_mail" requires="user,node_page" >
|
|
14 <n.this_user.can_view.page_node />
|
|
15 </macro>
|
|
16
|
|
17 <macro name="send_instant_email" requires="subscription,node_page">
|
|
18 <n.set_local_subscription.this_subscription/>
|
|
19 <n.send_subscription_email
|
|
20 node_attr = "[n.page_node/]"
|
|
21 text_part = "[n.local_subscription.instant_text/]"
|
|
22 html_part = "[n.local_subscription.instant_html/]"
|
|
23 />
|
|
24 </macro>
|
|
25
|
|
26 <macro name="send_subscription_email" parameters="node_attr,text_part,html_part" requires="subscription">
|
|
27 <n.set_local_subscription.this_subscription/>
|
|
28 <n.set_local_node.node_attr/>
|
|
29 <n.block.>
|
|
30 <n.new_email.>
|
|
31 <n.send>
|
|
32 <to.local_subscription.user.user_email/>
|
|
33 <to_name.local_subscription.user.name/>
|
|
34 <from.local_subscription.user.reply_address_for.local_node/>
|
|
35 <from_name><n.local_node.owner.name/> [via <n.root_node.subject/>]</from_name>
|
|
36 <subject.local_node.subject/>
|
|
37 <text_part.text_part/>
|
|
38 <html_part.html_part/>
|
|
39 <set_headers_for.local_node/>
|
|
40 <bounce_to.local_subscription.user.bounces_address/>
|
|
41 </n.send>
|
|
42 </n.new_email.>
|
|
43 </n.block.>
|
|
44 </macro>
|
|
45
|
|
46 <macro name="send_assign_email" requires="node_page">
|
|
47 <n.if.topic_assignee.can_view.page_node>
|
|
48 <then.new_email.>
|
|
49 <n.send>
|
|
50 <to.topic_assignee.user_email/>
|
|
51 <to_name.topic_assignee.name/>
|
|
52 <from.topic_assignee.reply_address_for.page_node/>
|
|
53 <from_name><n.page_node.owner.name/> [via <n.root_node.subject/>]</from_name>
|
|
54 <subject.page_node.subject/>
|
|
55 <text_part.assign_text/>
|
|
56 <html_part.assign_html/>
|
|
57 <set_headers_for.page_node/>
|
|
58 <bounce_to.topic_assignee.bounces_address/>
|
|
59 </n.send>
|
|
60 </then.new_email.>
|
|
61 </n.if.topic_assignee.can_view.page_node>
|
|
62 </macro>
|
|
63
|
|
64 <macro name="digest email" requires="subscription,node_list">
|
|
65 <n.set_local_subscription.this_subscription/>
|
|
66 <n.filter_by.local_subscription.user.can_view.current_node/>
|
|
67 <n.new_email.>
|
|
68 <n.send>
|
|
69 <to.local_subscription.user.user_email/>
|
|
70 <to_name.local_subscription.user.name/>
|
|
71 <from_name.root_node.subject/>
|
|
72 <subject><n.local_subscription.node.subject/> - <t>Digest Email</t></subject>
|
|
73 <text_part.local_subscription.digest_text/>
|
|
74 <html_part.local_subscription.digest_html/>
|
|
75 <bounce_to.local_subscription.user.bounces_address/>
|
|
76 </n.send>
|
|
77 </n.new_email.>
|
|
78 </macro>
|
|
79
|
|
80 <macro name="instant_text" requires="subscription,node_page" unindent="true">
|
|
81 <n.if.page_node.is_app>
|
|
82 <then>
|
|
83 <t><t.username.page_node.owner.name/> created a new subcategory</t>:
|
|
84 <n.page_node.subject/>
|
|
85 </then>
|
|
86 </n.if.page_node.is_app>
|
|
87
|
|
88 <n.page_node.text_email_message_with_signature />
|
|
89 _______________________________________________
|
|
90 <t>If you reply to this email, your message will be added to the discussion below</t>:
|
|
91 <n.page_node.url/>
|
|
92 <n.start_new_topic_line/>
|
|
93 <n.unsubscribe_line format="text"/>
|
|
94 </macro>
|
|
95
|
|
96 <macro name="instant_html" requires="subscription,node_page">
|
|
97 <n.if.page_node.is_app>
|
|
98 <then>
|
|
99 <t><t.username.page_node.owner.name/> created a new subcategory</t>:
|
|
100 <b><n.page_node.subject/></b><br/><br/>
|
|
101 </then>
|
|
102 </n.if.page_node.is_app>
|
|
103
|
|
104 <n.page_node.html_email_message_with_signature/>
|
|
105 <br/>
|
|
106 <br/>
|
|
107 <hr noshade="noshade" size="1" color="#cccccc" />
|
|
108 <div style="color:#444; font: 12px tahoma,geneva,helvetica,arial,sans-serif;">
|
|
109 <div style="font-weight:bold"><t>If you reply to this email, your message will be added to the discussion below</t>:</div>
|
|
110 <a href="[n.page_node.url/]"><n.page_node.url/></a>
|
|
111 </div>
|
|
112 <div style="color:#666; font: 11px tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em;line-height:1.5em">
|
|
113 <n.start_new_topic_line append="[br/]"/>
|
|
114 <n.unsubscribe_line format="html"/><br/>
|
|
115 <n.macro_viewer_email_link macro="instant_html"/>
|
|
116 </div>
|
|
117 </macro>
|
|
118
|
|
119 <macro name="assign_text" requires="node_page" unindent="true">
|
|
120 <n.page_node.text_email_message_with_signature/>
|
|
121 ______________________________________
|
|
122 <t>This topic is assigned to you at priority <t.priority.topic_priority/></t>
|
|
123 <t>View message</t> @ <n.page_node.url/>
|
|
124 </macro>
|
|
125
|
|
126 <macro name="assign_html" requires="node_page">
|
|
127 <n.page_node.html_email_message_with_signature/>
|
|
128 <br/>
|
|
129 <br/>
|
|
130 <hr noshade="noshade" size="1" color="#cccccc" />
|
|
131 <div style="color:#666666;font: 11px tahoma,geneva,helvetica,arial,sans-serif;margin-bottom:1.5em;line-height:1.5em">
|
|
132 <t>This topic is assigned to you at priority <t.priority><div style="[n.priority_style/]"><n.topic_priority/></div></t.priority></t><br/>
|
|
133 <t>View message</t> @ <a href="[n.page_node.url/]"><n.page_node.url/></a><br/>
|
|
134 <n.macro_viewer_email_link macro="assign_html"/>
|
|
135 </div>
|
|
136 </macro>
|
|
137
|
|
138 <macro name="priority_style" requires="node_page">
|
|
139 text-align:center;
|
|
140 background-color: #<n.priority_bg_color/>;
|
|
141 border:1px solid #<n.priority_border_color/>;
|
|
142 color:#FFFFFF;
|
|
143 display:inline;
|
|
144 padding:0 .3em;
|
|
145 font-weight:bold;
|
|
146 </macro>
|
|
147
|
|
148 <macro name="priority_bg_color" requires="node_page">
|
|
149 <n.string_list. values="0,E94747,D8B23D,BCBCBC,81C7DE,4A7BD5" separator=",">
|
|
150 <n.at_index.topic_priority/>
|
|
151 </n.string_list.>
|
|
152 </macro>
|
|
153
|
|
154 <macro name="priority_border_color" requires="node_page">
|
|
155 <n.string_list. values="0,F4A2A2,F5DAA9,DCDCDC,B9DDE9,A3BCEA" separator=",">
|
|
156 <n.at_index.topic_priority/>
|
|
157 </n.string_list.>
|
|
158 </macro>
|
|
159
|
|
160 <macro name="start_new_topic_line" parameters="append" requires="subscription, node_page">
|
|
161 <n.set_local_user.this_subscription.user/>
|
|
162 <n.set_local_node.page_node.get_app_node/>
|
|
163 <n.if.both condition1="[n.local_user.has_subscription_to_descentants_of.local_node/]" condition2="[n.local_user.can_reply_to.local_node/]">
|
|
164 <then>
|
|
165 <t>To start a new topic under <t.location.local_node.subject/>, email <t.p2.local_node.user_address email="[n.local_user.user_email/]"/></t> <n.hide_null.append/>
|
|
166 </then>
|
|
167 </n.if.both>
|
|
168 </macro>
|
|
169
|
|
170 <macro name="unsubscribe_line" parameters="format" requires="subscription">
|
|
171 <n.if.equal value1="[n.format/]" value2="html">
|
|
172 <then><t>To unsubscribe from <t.location.node.subject/></t>, <a href="[n.unsubscribe_by_code_url/]"><t>click here</t></a>.</then>
|
|
173 <else><t>To unsubscribe from <t.location.node.subject/></t>, <t>visit <t.url.unsubscribe_by_code_url/></t></else>
|
|
174 </n.if.equal>
|
|
175 </macro>
|
|
176
|
|
177 <macro name="remove_unsubscription_link" dot_parameter="html">
|
|
178 <n.regex_replace_all
|
|
179 text = "[n.html/]"
|
|
180 pattern = 'http://[^"\s]+\.jtp\?macro=unsubscribe_by_code[^"\s]*'
|
|
181 replacement = ''
|
|
182 />
|
|
183 </macro>
|
|
184
|
|
185 <macro name="email_message" dot_parameter="do">
|
|
186 <n.do/>
|
|
187 </macro>
|
|
188
|
|
189 <macro name="html_email_message_with_signature" requires="node">
|
|
190 <n.email_message.>
|
|
191 <n.fix_quotes.>
|
|
192 <n.fix_signature.>
|
|
193 <n.message_with_signature/>
|
|
194 </n.fix_signature.>
|
|
195 </n.fix_quotes.>
|
|
196 </n.email_message.>
|
|
197 </macro>
|
|
198
|
|
199 <macro name="text_email_message_with_signature" requires="node" unindent="true">
|
|
200 <n.email_message.>
|
|
201 <n.node_message_as_text />
|
|
202 <n.if.owner.has_signature>
|
|
203 <then>
|
|
204 <n.crlf/>-----
|
|
205 <n.owner.signature.as_text/>
|
|
206 </then>
|
|
207 </n.if.owner.has_signature>
|
|
208 </n.email_message.>
|
|
209 </macro>
|
|
210
|
|
211 <macro name="fix_quotes" dot_parameter="text">
|
|
212 <n.regex_replace_all. pattern="[n.lt/]blockquote" replacement="[n.lt/]blockquote style='border-left:2px solid #CCCCCC;padding:0 1em'">
|
|
213 <n.text/>
|
|
214 </n.regex_replace_all.>
|
|
215 </macro>
|
|
216
|
|
217 <macro name="fix_signature" dot_parameter="text">
|
|
218 <n.regex_replace_all. pattern='div class="signature weak-color"' replacement='div class="signature" style="margin-top:1em;color:#666666;font-size:11px;"'>
|
|
219 <n.text/>
|
|
220 </n.regex_replace_all.>
|
|
221 </macro>
|
|
222
|
|
223 <macro name="digest_text" requires="subscription,node_list" unindent="true">
|
|
224 <n.set_local_subscription.this_subscription/>
|
|
225 <t>Digest Email</t>
|
|
226 "<n.local_subscription.node.subject/>"
|
|
227 <n.digest_post_count/>
|
|
228
|
|
229 <n.reset_list_index/>
|
|
230 <n.loop.>
|
|
231 [<n.current_node.digest_subject/>]
|
|
232 <n.compress.>
|
|
233 <n.truncate. size="200">
|
|
234 <n.current_node.message.as_text/>
|
|
235 </n.truncate.>
|
|
236 </n.compress.>
|
|
237 <n.compress.>
|
|
238 <t>by <t.author.current_node.owner.name/></t>
|
|
239 <t>on <t.date.current_node.when_created.custom_format format="yyyy-MM-dd"/></t>
|
|
240 <t>in <t.location.current_node.get_app_node.subject/></t>
|
|
241 </n.compress.>
|
|
242
|
|
243 <t>Read more</t>
|
|
244 <n.current_node.url/>
|
|
245
|
|
246 <n.nop/>
|
|
247 </n.loop.>
|
|
248 <n.unsubscribe_line format="text"/>
|
|
249
|
|
250 ---
|
|
251 <t>DO NOT REPLY TO THIS EMAIL</t>
|
|
252
|
|
253 <t>Replies sent to this address are not read or processed.</t>
|
|
254 <t>If you want to respond to a post for which you received this email,
|
|
255 please go to the website: <t.url.local_subscription.node.url/></t>
|
|
256 </macro>
|
|
257
|
|
258 <macro name="digest_html" requires="subscription,node_list" unindent="true">
|
|
259 <n.set_local_subscription.this_subscription/>
|
|
260 <h2><t>Digest Email</t></h2>
|
|
261 <h3><n.local_subscription.node.subject/></h3>
|
|
262 <div style="color:#666666;font-weight:bold">
|
|
263 <n.digest_post_count/>
|
|
264 </div>
|
|
265
|
|
266 <n.reset_list_index/>
|
|
267 <n.loop.>
|
|
268 <p>
|
|
269 <div style="font-size:120%">
|
|
270 <a href="[n.current_node.url/]"><n.current_node.digest_subject/></a>
|
|
271 </div>
|
|
272 <n.trim.truncate. size="200">
|
|
273 <n.compress.current_node.message.as_text/>
|
|
274 </n.trim.truncate.>
|
|
275 <div style="color:#666666; font: 11px tahoma,geneva,helvetica,arial,sans-serif;">
|
|
276 <t>by <t.author><b><n.current_node.owner.name/></b></t.author></t>
|
|
277 <t>on <t.date.current_node.when_created.custom_format format="yyyy-MM-dd"/></t>
|
|
278 <t>in <t.location><i><n.current_node.get_app_node.subject/></i></t.location></t>
|
|
279 </div>
|
|
280 </p>
|
|
281 </n.loop.>
|
|
282
|
|
283 <br/>
|
|
284 <br/>
|
|
285 <n.unsubscribe_line format="html"/>
|
|
286
|
|
287 <hr noshade="noshade" size="1" color="#cccccc" />
|
|
288 <div style="color:#666666; font: 11px tahoma,geneva,helvetica,arial,sans-serif;line-height:1.5em">
|
|
289 <t>DO NOT REPLY TO THIS EMAIL</t><br/>
|
|
290 <br/>
|
|
291 <t>Replies sent to this address are not read or processed.</t>
|
|
292 <t>If you want to respond to a post for which you received this email,
|
|
293 please go to the website: <t.url.local_subscription.node.url/></t>
|
|
294 <br/>
|
|
295 <n.macro_viewer_email_link macro="digest_html"/>
|
|
296 </div>
|
|
297 </macro>
|
|
298
|
|
299 <macro name="digest_subject" requires="node">
|
|
300 <n.compress.>
|
|
301 <n.if.is_post>
|
|
302 <then>
|
|
303 <n.topic_node.subject/>
|
|
304 <n.if.not.ends_with text="[n.subject/]" suffix="[n.topic_node.subject/]" >
|
|
305 <then>(<n.subject/>)</then>
|
|
306 </n.if.not.ends_with>
|
|
307 </then>
|
|
308 <else>
|
|
309 <n.subject/>
|
|
310 </else>
|
|
311 </n.if.is_post>
|
|
312 </n.compress.>
|
|
313 </macro>
|
|
314
|
|
315 <macro name="digest_post_count" requires="node_list">
|
|
316 <n.one_or_many.element_count>
|
|
317 <one_text><t>new post</t></one_text>
|
|
318 <many_text><t>new posts</t></many_text>
|
|
319 </n.one_or_many.element_count>
|
|
320 </macro>
|
|
321
|
|
322 <macro name="topic_assignee" dot_parameter="do" requires="node_page">
|
|
323 <n.page_node.topic_node.assignee.do/>
|
|
324 </macro>
|
|
325
|
|
326 <macro name="topic_priority" requires="node_page">
|
|
327 <n.page_node.topic_node.priority/>
|
|
328 </macro>
|
|
329
|
|
330 <macro name="send bookmark email" unindent="true">
|
|
331 <n.set_var. name='what'>
|
|
332 <n.root_node.lower_case_view_name/>
|
|
333 </n.set_var.>
|
|
334 <n.new_email.>
|
|
335 <n.send>
|
|
336 <to><n.root_node.owner.user_email/></to>
|
|
337 <subject><t>Link to <t.location.root_node.subject/></t></subject>
|
|
338 <text_part>
|
|
339 <t>Hi <t.name.root_node.owner.name/>,</t>
|
|
340 <t>Congratulations on your new <t.app.var name='what'/>!</t>
|
|
341
|
|
342 <n.root_node.subject/>
|
|
343 <n.base_url/>
|
|
344
|
|
345 <t>Please bookmark the link above or save this email so you
|
|
346 can easily find your <t.app.var name='what'/> in the future.</t>
|
|
347
|
|
348 <t>You can also promote your <t.app.var name='what'/> by sending the link
|
|
349 to your friends, embedding it onto your website or talking about it on other forums.</t>
|
|
350
|
|
351 <t>Sincerely,</t>
|
|
352 <t>The Nabble Team</t>
|
|
353 <n.nabble_homepage/>
|
|
354 __________________________________________________________
|
|
355 <t>This is an automatic email sent by Nabble to confirm the creation of your new <t.app.var name='what'/>.
|
|
356 If you didn't create the <t.app.var name='what'/> mentioned above, please contact us through
|
|
357 the Nabble Support forum.</t>
|
|
358 </text_part>
|
|
359 <html_part>
|
|
360 <t>Hi <t.name.root_node.owner.name/>,</t><br/>
|
|
361 <br/>
|
|
362 <t>Congratulations on your new <t.app.var name='what'/>!</t><br/>
|
|
363 <br/>
|
|
364 <n.root_node.subject/><br/>
|
|
365 <n.base_url/><br/>
|
|
366 <br/>
|
|
367 <t>Please bookmark the link above or save this email so you
|
|
368 can easily find your <t.app.var name='what'/> in the future.</t><br/>
|
|
369 <br/>
|
|
370 <t>You can also promote your <t.app.var name='what'/> by sending the link
|
|
371 to your friends, embedding it onto your website or talking about it on other forums.</t><br/>
|
|
372 <br/>
|
|
373 <t>Sincerely,</t><br/>
|
|
374 <t>The Nabble Team</t><br/>
|
|
375 <n.nabble_homepage/><br/>
|
|
376 <hr noshade="noshade" size="1" color="#cccccc" />
|
|
377 <div style="color:#666666; font: 11px tahoma,geneva,helvetica,arial,sans-serif;line-height:1.5em">
|
|
378 <t>This is an automatic email sent by Nabble to confirm the creation of your new <t.app.var name='what'/>.
|
|
379 If you didn't create the <t.app.var name='what'/> mentioned above, please contact us through
|
|
380 the Nabble Support forum.</t>
|
|
381 <br/>
|
|
382 <n.macro_viewer_email_link macro="send bookmark email"/>
|
|
383 </div>
|
|
384 </html_part>
|
|
385 </n.send>
|
|
386 </n.new_email.>
|
|
387 </macro>
|
|
388
|
|
389 <macro name="macro_viewer_email_link" parameters="macro">
|
|
390 <n.set_var. name="url"><n.macro_viewer_email_url macro="[n.macro/]"/></n.set_var.>
|
|
391 <a href="[n.var name='url'/]" rel="nofollow" style="font:9px serif">NAML</a>
|
|
392 </macro>
|
|
393
|
|
394 <macro name="macro_viewer_email_url" parameters="macro">
|
|
395 <n.remove_spaces.>
|
|
396 <n.base_url/>
|
|
397 <n.macro_search. query="[n.macro/]" search_by="name">
|
|
398 <n.if.next_element>
|
|
399 <then.current_command.command_path/>
|
|
400 </n.if.next_element>
|
|
401 </n.macro_search.>
|
|
402 </n.remove_spaces.>
|
|
403 </macro>
|
|
404
|
|
405 <macro name="user email changed" parameters="old_email,new_email">
|
|
406 <n.comment.>To be overridden</n.comment.>
|
|
407 </macro> |