]> git.uio.no Git - usit-rt.git/blob - etc/initialdata
Master to 4.2.8
[usit-rt.git] / etc / initialdata
1 # Initial data for a fresh RT installation.
2
3 @Users = (
4     {  Name         => 'root',
5        Gecos        => 'root',
6        RealName     => 'Enoch Root',
7        Password     => 'password',
8        EmailAddress => "root\@localhost",
9        Comments     => 'SuperUser',
10        Privileged   => '1',
11     },
12 );
13
14 @Groups = (
15 );
16
17 @Queues = ({ Name              => 'General',
18              Description       => 'The default queue',
19              CorrespondAddress => "",
20              CommentAddress    => "", },
21            { Name        => '___Approvals',
22              Lifecycle   => 'approvals',
23              Description => 'A system-internal queue for the approvals system',
24              Disabled    => 2, } );
25
26 @ScripActions = (
27
28     {  Name        => 'Autoreply To Requestors',    # loc
29        Description =>
30 'Always sends a message to the requestors independent of message sender' ,                                            # loc
31        ExecModule => 'Autoreply',
32        Argument   => 'Requestor' },
33     { Name        => 'Notify Requestors',                    # loc
34       Description => 'Sends a message to the requestors',    # loc
35       ExecModule  => 'Notify',
36       Argument    => 'Requestor' },
37     { Name        => 'Notify Owner as Comment',              # loc
38       Description => 'Sends mail to the owner',              # loc
39       ExecModule  => 'NotifyAsComment',
40       Argument    => 'Owner' },
41     { Name        => 'Notify Owner',                         # loc
42       Description => 'Sends mail to the owner',              # loc
43       ExecModule  => 'Notify',
44       Argument    => 'Owner' },
45     { Name        => 'Notify Ccs as Comment',              # loc
46       Description => 'Sends mail to the Ccs as a comment', # loc
47       ExecModule  => 'NotifyAsComment',
48       Argument    => 'Cc' },
49     { Name        => 'Notify Ccs',                                   # loc
50       Description => 'Sends mail to the Ccs',                        # loc
51       ExecModule  => 'Notify',
52       Argument    => 'Cc' },
53     { Name        => 'Notify AdminCcs as Comment',                        # loc
54       Description => 'Sends mail to the administrative Ccs as a comment', # loc
55       ExecModule  => 'NotifyAsComment',
56       Argument    => 'AdminCc' },
57     { Name        => 'Notify AdminCcs',                                   # loc
58       Description => 'Sends mail to the administrative Ccs',              # loc
59       ExecModule  => 'Notify',
60       Argument    => 'AdminCc' },
61     { Name        => 'Notify Owner and AdminCcs',                         # loc
62       Description => 'Sends mail to the Owner and administrative Ccs',    # loc
63       ExecModule  => 'Notify',
64       Argument    => 'Owner,AdminCc' },
65     { Name        => 'Notify Owner or AdminCcs',                         # loc
66       Description => 'Sends mail to the Owner if set, otherwise administrative Ccs',    # loc
67       ExecModule  => 'NotifyOwnerOrAdminCc',
68     },
69     { Name        => 'Notify Requestors and Ccs as Comment',              # loc
70       Description => 'Send mail to requestors and Ccs as a comment',      # loc
71       ExecModule  => 'NotifyAsComment',
72       Argument    => 'Requestor,Cc' },
73
74     { Name        => 'Notify Requestors and Ccs',                         # loc
75       Description => 'Send mail to requestors and Ccs',                   # loc
76       ExecModule  => 'Notify',
77       Argument    => 'Requestor,Cc' },
78
79     { Name        => 'Notify Owner, Requestors, Ccs and AdminCcs as Comment',    # loc
80       Description => 'Send mail to owner and all watchers as a "comment"',          # loc
81       ExecModule  => 'NotifyAsComment',
82       Argument    => 'All' },
83     { Name        => 'Notify Owner, Requestors, Ccs and AdminCcs',               # loc
84       Description => 'Send mail to owner and all watchers',                         # loc
85       ExecModule  => 'Notify',
86       Argument    => 'All' },
87     { Name        => 'Notify Other Recipients as Comment',                # loc
88       Description => 'Sends mail to explicitly listed Ccs and Bccs',      # loc
89       ExecModule  => 'NotifyAsComment',
90       Argument    => 'OtherRecipients' },
91     { Name        => 'Notify Other Recipients',                           # loc
92       Description => 'Sends mail to explicitly listed Ccs and Bccs',      # loc
93       ExecModule  => 'Notify',
94       Argument    => 'OtherRecipients' },
95     { Name        => 'User Defined',                                      # loc
96       Description => 'Perform a user-defined action',                     # loc
97       ExecModule  => 'UserDefined', },
98     {  Name        => 'Create Tickets',                                    # loc
99        Description =>
100          'Create new tickets based on this scrip\'s template',             # loc
101        ExecModule => 'CreateTickets', },
102     { Name        => 'Open Tickets',                                      # loc
103       Description => 'Open tickets on correspondence',                    # loc
104       ExecModule  => 'AutoOpen' },
105     { Name        => 'Open Inactive Tickets',                             # loc
106       Description => 'Open inactive tickets',                             # loc
107       ExecModule  => 'AutoOpenInactive' },
108     { Name        => 'Extract Subject Tag',                               # loc
109       Description => 'Extract tags from a Transaction\'s subject and add them to the Ticket\'s subject.', # loc
110       ExecModule  => 'ExtractSubjectTag' },
111     { Name        => 'Send Forward',                 # loc
112       Description => 'Send forwarded message',       # loc
113       ExecModule  => 'SendForward', },
114 );
115
116 @ScripConditions = (
117     { Name                 => 'On Create',                                # loc
118       Description          => 'When a ticket is created',                 # loc
119       ApplicableTransTypes => 'Create',
120       ExecModule           => 'AnyTransaction', },
121
122     { Name                 => 'On Transaction',                           # loc
123       Description          => 'When anything happens',                    # loc
124       ApplicableTransTypes => 'Any',
125       ExecModule           => 'AnyTransaction', },
126     {
127
128       Name                 => 'On Correspond',                             # loc
129       Description          => 'Whenever correspondence comes in',          # loc
130       ApplicableTransTypes => 'Correspond',
131       ExecModule           => 'AnyTransaction', },
132
133     {
134
135       Name                 => 'On Forward',                                # loc
136       Description          => 'Whenever a ticket or transaction is forwarded', # loc
137       ApplicableTransTypes => 'Forward Transaction,Forward Ticket',
138       ExecModule           => 'AnyTransaction', },
139
140     {
141
142       Name                 => 'On Forward Ticket',                         # loc
143       Description          => 'Whenever a ticket is forwarded',            # loc
144       ApplicableTransTypes => 'Forward Ticket',
145       ExecModule           => 'AnyTransaction', },
146
147     {
148
149       Name                 => 'On Forward Transaction',                    # loc
150       Description          => 'Whenever a transaction is forwarded',       # loc
151       ApplicableTransTypes => 'Forward Transaction',
152       ExecModule           => 'AnyTransaction', },
153
154     {
155
156       Name                 => 'On Comment',                                # loc
157       Description          => 'Whenever comments come in',                 # loc
158       ApplicableTransTypes => 'Comment',
159       ExecModule           => 'AnyTransaction' },
160     {
161
162       Name                 => 'On Status Change',                          # loc
163       Description          => 'Whenever a ticket\'s status changes',       # loc
164       ApplicableTransTypes => 'Status',
165       ExecModule           => 'AnyTransaction',
166
167     },
168     {
169
170       Name                 => 'On Priority Change',                       # loc
171       Description          => 'Whenever a ticket\'s priority changes',    # loc
172       ApplicableTransTypes => 'Set',
173       ExecModule           => 'PriorityChange',
174     },
175     {
176
177       Name                 => 'On Owner Change',                           # loc
178       Description          => 'Whenever a ticket\'s owner changes',        # loc
179       ApplicableTransTypes => 'Any',
180       ExecModule           => 'OwnerChange',
181
182     },
183     {
184
185       Name                 => 'On Queue Change',                           # loc
186       Description          => 'Whenever a ticket\'s queue changes',        # loc
187       ApplicableTransTypes => 'Set',
188       ExecModule           => 'QueueChange',
189
190     },
191     {  Name                 => 'On Resolve',                               # loc
192        Description          => 'Whenever a ticket is resolved',            # loc
193        ApplicableTransTypes => 'Status',
194        ExecModule           => 'StatusChange',
195        Argument             => 'resolved'
196
197     },
198     {  Name                 => 'On Reject',                                # loc
199        Description          => 'Whenever a ticket is rejected',            # loc
200        ApplicableTransTypes => 'Status',
201        ExecModule           => 'StatusChange',
202        Argument             => 'rejected'
203
204     },
205     {  Name                 => 'User Defined',                             # loc
206        Description          => 'Whenever a user-defined condition occurs', # loc
207        ApplicableTransTypes => 'Any',
208        ExecModule           => 'UserDefined'
209
210     },
211
212     {  Name                 => 'On Close',                                 # loc
213        Description          => 'Whenever a ticket is closed', # loc
214        ApplicableTransTypes => 'Status,Set',
215        ExecModule           => 'CloseTicket',
216     },
217     {  Name                 => 'On Reopen',                                # loc
218        Description          => 'Whenever a ticket is reopened', # loc
219        ApplicableTransTypes => 'Status,Set',
220        ExecModule           => 'ReopenTicket',
221     },
222
223 );
224
225 @Templates = (
226     { Queue       => '0',
227       Name        => 'Blank',                                             # loc
228       Description => 'A blank template',                                  # loc
229       Content     => '', },
230     {  Queue       => '0',
231        Name        => 'Autoreply',                                         # loc
232        Description => 'Plain text Autoresponse template',                     # loc
233        Content     => 'Subject: AutoReply: {$Ticket->Subject}
234
235
236 Greetings,
237
238 This message has been automatically generated in response to the
239 creation of a trouble ticket regarding:
240         "{$Ticket->Subject()}", 
241 a summary of which appears below.
242
243 There is no need to reply to this message right now.  Your ticket has been
244 assigned an ID of { $Ticket->SubjectTag }.
245
246 Please include the string:
247
248          { $Ticket->SubjectTag }
249
250 in the subject line of all future correspondence about this issue. To do so, 
251 you may reply to this message.
252
253                         Thank you,
254                         {$Ticket->QueueObj->CorrespondAddress()}
255
256 -------------------------------------------------------------------------
257 {$Transaction->Content()}
258 '
259     },
260     {  Queue       => '0',
261        Name        => 'Autoreply in HTML',                              # loc
262        Description => 'HTML Autoresponse template',                     # loc
263        Content     => q[Subject: AutoReply: {$Ticket->Subject}
264 Content-Type: text/html
265
266 <p>Greetings,</p>
267
268 <p>This message has been automatically generated in response to the
269 creation of a trouble ticket regarding <b>{$Ticket->Subject()}</b>,
270 a summary of which appears below.</p>
271
272 <p>There is no need to reply to this message right now.  Your ticket has been
273 assigned an ID of <b>{$Ticket->SubjectTag}</b>.</p>
274
275 <p>Please include the string <b>{$Ticket->SubjectTag}</b>
276 in the subject line of all future correspondence about this issue. To do so,
277 you may reply to this message.</p>
278
279 <p>Thank you,<br/>
280 {$Ticket->QueueObj->CorrespondAddress()}</p>
281
282 <hr/>
283 {$Transaction->Content(Type => 'text/html')}
284 ],
285     },
286     {  Queue       => '0',
287        Name        => 'Transaction',                     # loc
288        Description => 'Plain text transaction template', # loc
289        Content     => 'RT-Attach-Message: yes
290
291
292 {$Transaction->CreatedAsString}: Request {$Ticket->id} was acted upon.
293  Transaction: {$Transaction->Description}
294        Queue: {$Ticket->QueueObj->Name}
295      Subject: {$Transaction->Subject || $Ticket->Subject || "(No subject given)"}
296        Owner: {$Ticket->OwnerObj->Name}
297   Requestors: {$Ticket->RequestorAddresses}
298       Status: {$Ticket->Status}
299  Ticket <URL: {RT->Config->Get(\'WebURL\')}Ticket/Display.html?id={$Ticket->id} >
300
301
302 {$Transaction->Content()}
303 '
304     },
305     {  Queue       => '0',
306        Name        => 'Transaction in HTML',          # loc
307        Description => 'HTML transaction template',    # loc
308        Content     => 'RT-Attach-Message: yes
309 Content-Type: text/html
310
311 <b>{$Transaction->CreatedAsString}: Request <a href="{RT->Config->Get("WebURL")}Ticket/Display.html?id={$Ticket->id}">{$Ticket->id}</a> was acted upon by {$Transaction->CreatorObj->Name}.</b>
312 <br>
313 <table border="0">
314 <tr><td align="right"><b>Transaction:</b></td><td>{$Transaction->Description}</td></tr>
315 <tr><td align="right"><b>Queue:</b></td><td>{$Ticket->QueueObj->Name}</td></tr>
316 <tr><td align="right"><b>Subject:</b></td><td>{$Transaction->Subject || $Ticket->Subject || "(No subject given)"} </td></tr>
317 <tr><td align="right"><b>Owner:</b></td><td>{$Ticket->OwnerObj->Name}</td></tr>
318 <tr><td align="right"><b>Requestors:</b></td><td>{$Ticket->RequestorAddresses}</td></tr>
319 <tr><td align="right"><b>Status:</b></td><td>{$Ticket->Status}</td></tr>
320 <tr><td align="right"><b>Ticket URL:</b></td><td><a href="{RT->Config->Get("WebURL")}Ticket/Display.html?id={$Ticket->id}">{RT->Config->Get("WebURL")}Ticket/Display.html?id={$Ticket->id}</a></td></tr>
321 </table>
322 <br/>
323 <br/>
324 {$Transaction->Content( Type => "text/html")}
325 '
326     },
327     # Shadow the global templates of the same name to suppress duplicate
328     # notifications until rules is ripped out.
329     { Queue     => "___Approvals",
330       Name      => "Transaction in HTML",
331       Content   => "",
332     },
333     { Queue     => "___Approvals",
334       Name      => "Transaction",
335       Content   => "",
336     },
337     {
338
339       Queue       => '0',
340       Name        => 'Admin Correspondence',                     # loc
341       Description => 'Plain text admin correspondence template',    # loc
342       Content     => 'RT-Attach-Message: yes
343
344
345 <URL: {RT->Config->Get(\'WebURL\')}Ticket/Display.html?id={$Ticket->id} >
346
347 {$Transaction->Content()}
348 '
349     },
350     {  Queue       => '0',
351        Name        => 'Admin Correspondence in HTML',                     # loc
352        Description => 'HTML admin correspondence template',    # loc
353        Content     => 'RT-Attach-Message: yes
354 Content-Type: text/html
355
356 Ticket URL: <a href="{RT->Config->Get("WebURL")}Ticket/Display.html?id={$Ticket->id}">{RT->Config->Get("WebURL")}Ticket/Display.html?id={$Ticket->id}</a>
357 <br />
358 <br />
359 {$Transaction->Content(Type => "text/html");}
360 '
361     },
362     {  Queue       => '0',
363        Name        => 'Correspondence',                          # loc
364        Description => 'Plain text correspondence template',         # loc
365        Content     => 'RT-Attach-Message: yes
366
367 {$Transaction->Content()}
368 '
369     },
370     {  Queue       => '0',
371        Name        => 'Correspondence in HTML',                 # loc
372        Description => 'HTML correspondence template',           # loc
373        Content     => 'RT-Attach-Message: yes
374 Content-Type: text/html
375
376 {$Transaction->Content( Type => "text/html")}
377 '
378     },
379     {  Queue       => '0',
380        Name        => 'Admin Comment',                           # loc
381        Description => 'Plain text admin comment template',          # loc
382        Content     =>
383 'Subject: [Comment] {my $s=($Transaction->Subject||$Ticket->Subject||""); $s =~ s/\\[Comment\\]\\s*//g; $s =~ s/^Re:\\s*//i; $s;}
384 RT-Attach-Message: yes
385
386
387 {RT->Config->Get(\'WebURL\')}Ticket/Display.html?id={$Ticket->id}
388 This is a comment.  It is not sent to the Requestor(s):
389
390 {$Transaction->Content()}
391 '
392     },
393     {  Queue       => '0',
394        Name        => 'Admin Comment in HTML',                  # loc
395        Description => 'HTML admin comment template',            # loc
396        Content     => 
397 'Subject: [Comment] {my $s=($Transaction->Subject||$Ticket->Subject||""); $s =~ s/\\[Comment\\]\\s*//g; $s =~ s/^Re:\\s*//i; $s;}
398 RT-Attach-Message: yes
399 Content-Type: text/html
400
401 <p>This is a comment about <a href="{RT->Config->Get("WebURL")}Ticket/Display.html?id={$Ticket->id}">ticket {$Ticket->id}</a>. It is not sent to the Requestor(s):</p>
402
403 {$Transaction->Content(Type => "text/html")}
404 '
405     },
406     {  Queue       => '0',
407        Name        => 'Reminder',                           # loc
408        Description => 'Default reminder template',          # loc
409        Content     =>
410 'Subject:{$Ticket->Subject} is due {$Ticket->DueObj->AsString}
411
412 This reminder is for ticket #{$Target = $Ticket->RefersTo->First->TargetObj;$Target->Id}.
413
414 {RT->Config->Get(\'WebURL\')}Ticket/Display.html?id={$Target->Id}
415 '
416     },
417
418     {  Queue       => '0',
419        Name        => 'Status Change',                                     # loc
420        Description => 'Ticket status changed',                             # loc
421        Content     => 'Subject: Status Changed to: {$Transaction->NewValue}
422
423
424 {RT->Config->Get(\'WebURL\')}Ticket/Display.html?id={$Ticket->id}
425
426 {$Transaction->Content()}
427 '
428     },
429     {  Queue       => '0',
430        Name        => 'Status Change in HTML',              # loc
431        Description => 'HTML Ticket status changed',              # loc
432        Content     => 'Subject: Status Changed to: {$Transaction->NewValue}
433 Content-Type: text/html
434
435 <a href="{RT->Config->Get("WebURL")}Ticket/Display.html?id={$Ticket->id}">{RT->Config->Get("WebURL")}Ticket/Display.html?id={$Ticket->id}</a>
436 <br/>
437 <br/>
438 {$Transaction->Content(Type => "text/html")}
439 '
440     },
441     {
442
443       Queue       => '0',
444       Name        => 'Resolved',                 # loc
445       Description => 'Ticket Resolved',          # loc
446       Content     => 'Subject: Resolved: {$Ticket->Subject}
447
448 According to our records, your request has been resolved. If you have any
449 further questions or concerns, please respond to this message.
450 '
451     },
452     {  Queue       => '0',
453        Name        => 'Resolved in HTML',               # loc
454        Description => 'HTML Ticket Resolved',           # loc
455        Content     => 'Subject: Resolved: {$Ticket->Subject}
456 Content-Type: text/html
457
458 <p>According to our records, your request has been resolved.  If you have any further questions or concerns, please respond to this message.</p>
459 '
460     },
461     {  Queue       => '___Approvals',
462        Name        => "New Pending Approval",    # loc
463        Description =>
464          "Notify Owners and AdminCcs of new items pending their approval", # loc
465        Content => 'Subject: New Pending Approval: {$Ticket->Subject}
466
467 Greetings,
468
469 There is a new item pending your approval: "{$Ticket->Subject()}", 
470 a summary of which appears below.
471
472 Please visit {RT->Config->Get(\'WebURL\')}Approvals/Display.html?id={$Ticket->id}
473 to approve or reject this ticket, or {RT->Config->Get(\'WebURL\')}Approvals/ to
474 batch-process all your pending approvals.
475
476 -------------------------------------------------------------------------
477 {$Transaction->Content()}
478 '
479     },
480     {  Queue       => '___Approvals',
481        Name        => "New Pending Approval in HTML",                                   # loc
482        Description => "Notify Owners and AdminCcs of new items pending their approval", # loc
483        Content     => 'Subject: New Pending Approval: {$Ticket->Subject}
484 Content-Type: text/html
485
486 <p>Greetings,</p>
487
488 <p>There is a new item pending your approval: <b>{$Ticket->Subject()}</b>,
489 a summary of which appears below.</p>
490
491 <p>Please <a href="{RT->Config->Get(\'WebURL\')}Approvals/Display.html?id={$Ticket->id}">approve
492 or reject this ticket</a>, or visit the <a href="{RT->Config->Get(\'WebURL\')}Approvals/">approvals
493 overview</a> to batch-process all your pending approvals.</p>
494
495 <hr />
496 {$Transaction->Content()}
497 '
498     },
499     {  Queue       => '___Approvals',
500        Name        => "Approval Passed",    # loc
501        Description =>
502          "Notify Requestor of their ticket has been approved by some approver", # loc
503        Content => 'Subject: Ticket Approved: {$Ticket->Subject}
504
505 Greetings,
506
507 Your ticket has been approved by { eval { $Approver->Name } }.
508 Other approvals may be pending.
509
510 Approver\'s notes: { $Notes }
511 '
512     },
513     {  Queue       => '___Approvals',
514        Name        => "Approval Passed in HTML",    # loc
515        Description =>
516          "Notify Requestor of their ticket has been approved by some approver", # loc
517        Content => 'Subject: Ticket Approved: {$Ticket->Subject}
518 Content-Type: text/html
519
520 <p>Greetings,</p>
521
522 <p>Your ticket has been approved by <b>{ eval { $Approver->Name } }</b>.
523 Other approvals may be pending.</p>
524
525 <p>Approver\'s notes:</p>
526 <blockquote>{ $Notes }</blockquote>
527 '
528     },
529     {  Queue       => '___Approvals',
530        Name        => "All Approvals Passed",    # loc
531        Description =>
532          "Notify Requestor of their ticket has been approved by all approvers", # loc
533        Content => 'Subject: Ticket Approved: {$Ticket->Subject}
534
535 Greetings,
536
537 Your ticket has been approved by { eval { $Approver->Name } }.
538 Its Owner may now start to act on it.
539
540 Approver\'s notes: { $Notes }
541 '
542     },
543     {  Queue       => '___Approvals',
544        Name        => "All Approvals Passed in HTML",    # loc
545        Description =>
546          "Notify Requestor of their ticket has been approved by all approvers", # loc
547        Content => 'Subject: Ticket Approved: {$Ticket->Subject}
548 Content-Type: text/html
549
550 <p>Greetings,</p>
551
552 <p>Your ticket has been approved by <b>{ eval { $Approver->Name } }</b>.
553 Its Owner may now start to act on it.</p>
554
555 <p>Approver\'s notes:</p>
556 <blockquote>{ $Notes }</blockquote>
557 '
558     },
559     {  Queue       => '___Approvals',
560        Name        => "Approval Rejected",    # loc
561        Description =>
562          "Notify Owner of their rejected ticket", # loc
563        Content => 'Subject: Ticket Rejected: {$Ticket->Subject}
564
565 Greetings,
566
567 Your ticket has been rejected by { eval { $Approver->Name } }.
568
569 Approver\'s notes: { $Notes }
570 '
571     },
572     {  Queue       => '___Approvals',
573        Name        => "Approval Rejected in HTML",    # loc
574        Description =>
575          "Notify Owner of their rejected ticket", # loc
576        Content => 'Subject: Ticket Rejected: {$Ticket->Subject}
577 Content-Type: text/html
578
579 <p>Greetings,</p>
580
581 <p>Your ticket has been rejected by <b>{ eval { $Approver->Name } }</b>.</p>
582
583 <p>Approver\'s notes:</p>
584 <blockquote>{ $Notes }</blockquote>
585 '
586     },
587     {  Queue       => '___Approvals',
588        Name        => "Approval Ready for Owner",    # loc
589        Description =>
590          "Notify Owner of their ticket has been approved and is ready to be acted on", # loc
591        Content => 'Subject: Ticket Approved: {$Ticket->Subject}
592
593 Greetings,
594
595 The ticket has been approved, you may now start to act on it.
596
597 '
598     },
599     {  Queue       => '___Approvals',
600        Name        => "Approval Ready for Owner in HTML",    # loc
601        Description =>
602          "Notify Owner of their ticket has been approved and is ready to be acted on", # loc
603        Content => 'Subject: Ticket Approved: {$Ticket->Subject}
604 Content-Type: text/html
605
606 <p>Greetings,</p>
607
608 <p>The ticket has been approved, you may now start to act on it.</p>
609
610 '
611     },
612     {  Queue       => 0,
613        Name        => "Forward",    # loc
614        Description => "Forwarded message", # loc
615        Content => q{
616
617 { $ForwardTransaction->Content =~ /\S/ ? $ForwardTransaction->Content : "This is a forward of transaction #".$Transaction->id." of ticket #". $Ticket->id }
618 }
619     },
620     {  Queue       => 0,
621        Name        => "Forward Ticket",    # loc
622        Description => "Forwarded ticket message", # loc
623        Content => q{
624
625 { $ForwardTransaction->Content =~ /\S/ ? $ForwardTransaction->Content : "This is a forward of ticket #". $Ticket->id }
626 }
627     },
628     {  Queue       => 0,
629        Name        => "Error: unencrypted message",    # loc
630        Description =>
631          "Inform user that their unencrypted mail has been rejected", # loc
632        Content => q{Subject: RT requires that all incoming mail be encrypted
633
634 You received this message because RT received mail from you that was not encrypted.  As such, it has been rejected.
635 }
636     },
637     {  Queue       => 0,
638        Name        => "Error: public key",    # loc
639        Description =>
640          "Inform user that he has problems with public key and couldn't recieve encrypted content", # loc
641        Content => q{Subject: We have no your public key or it's wrong
642
643 You received this message as we have no your public PGP key or we have a problem with your key. Inform the administrator about the problem.
644 }
645     },
646     {  Queue       => 0,
647        Name        => "Error to RT owner: public key",    # loc
648        Description =>
649          "Inform RT owner that user(s) have problems with public keys", # loc
650        Content => q{Subject: Some users have problems with public keys
651
652 You received this message as RT has problems with public keys of the following user:
653 {
654     foreach my $e ( @BadRecipients ) {
655         $OUT .= "* ". $e->{'Message'} ."\n";
656     }
657 }}
658     },
659     {  Queue       => 0,
660        Name        => "Error: no private key",    # loc
661        Description =>
662          "Inform user that we received an encrypted email and we have no private keys to decrypt", # loc
663        Content => q{Subject: we received message we cannot decrypt
664
665 You sent an encrypted message with subject '{ $Message->head->get('Subject') }',
666 but we have no private key it's encrypted to.
667
668 Please, check that you encrypt messages with correct keys
669 or contact the system administrator.}
670     },
671     {  Queue       => 0,
672        Name        => "Error: bad encrypted data",    # loc
673        Description =>
674          "Inform user that a message he sent has invalid encryption data", # loc
675        Content => q{Subject: We received a message we cannot handle
676
677 You sent us a message that we cannot handle due to corrupted signature or encrypted block. we get the following error(s):
678 { foreach my $msg ( @Messages ) {
679     $OUT .= "* $msg\n";
680   }
681 }}
682     },
683     {  Queue       => 0,
684        Name        => "PasswordChange",    # loc
685        Description =>
686          "Inform user that his password has been reset", # loc
687        Content => q{Subject: [{RT->Config->Get('rtname')}] Password reset
688
689 Greetings,
690
691 Someone at {$ENV{'REMOTE_ADDR'}} requested a password reset for you on {RT->Config->Get('WebURL')}
692
693 Your new password is:
694   {$NewPassword}
695 }
696     },
697
698                {   Queue       => '0',
699                    Name        => 'Email Digest',    # loc
700                    Description => 'Email template for periodic notification digests',  # loc
701                    Content => q[Subject: RT Email Digest
702
703 { $Argument }
704 ],
705                },
706
707 {
708     Queue       => 0,
709     Name        => "Error: Missing dashboard",    # loc
710     Description =>
711       "Inform user that a dashboard he subscribed to is missing", # loc
712     Content => q{Subject: [{RT->Config->Get('rtname')}] Missing dashboard!
713
714 Greetings,
715
716 You are subscribed to a dashboard that is currently missing. Most likely, the dashboard was deleted.
717
718 RT will remove this subscription as it is no longer useful. Here's the information RT had about your subscription:
719
720 DashboardID:  { $SubscriptionObj->SubValue('DashboardId') }
721 Frequency:    { $SubscriptionObj->SubValue('Frequency') }
722 Hour:         { $SubscriptionObj->SubValue('Hour') }
723 {
724     $SubscriptionObj->SubValue('Frequency') eq 'weekly'
725     ? "Day of week:  " . $SubscriptionObj->SubValue('Dow')
726     : $SubscriptionObj->SubValue('Frequency') eq 'monthly'
727       ? "Day of month: " . $SubscriptionObj->SubValue('Dom')
728       : ''
729 }
730 }
731 },
732 );
733
734 @Scrips = (
735     {  Description    => 'On Comment Notify AdminCcs as Comment',
736        ScripCondition => 'On Comment',
737        ScripAction    => 'Notify AdminCcs As Comment',
738        Template       => 'Admin Comment in HTML' },
739     {  Description    => 'On Comment Notify Other Recipients as Comment',
740        ScripCondition => 'On Comment',
741        ScripAction    => 'Notify Other Recipients As Comment',
742        Template       => 'Correspondence in HTML' },
743     {  Description    => 'On Correspond Notify Owner and AdminCcs',
744        ScripCondition => 'On Correspond',
745        ScripAction    => 'Notify Owner and AdminCcs',
746        Template       => 'Admin Correspondence in HTML' },
747     {  Description    => 'On Correspond Notify Other Recipients',
748        ScripCondition => 'On Correspond',
749        ScripAction    => 'Notify Other Recipients',
750        Template       => 'Correspondence in HTML' },
751     {  Description    => 'On Correspond Notify Requestors and Ccs',
752        ScripCondition => 'On Correspond',
753        ScripAction    => 'Notify Requestors And Ccs',
754        Template       => 'Correspondence in HTML' },
755     {  Description    => 'On Correspond Open Inactive Tickets',
756        ScripCondition => 'On Correspond',
757        ScripAction    => 'Open Inactive Tickets',
758        Template       => 'Blank' },
759     {  Description    => 'On Create Autoreply To Requestors',
760        ScripCondition => 'On Create',
761        ScripAction    => 'AutoReply To Requestors',
762        Template       => 'AutoReply in HTML' },
763     {  Description    => 'On Create Notify Owner and AdminCcs',
764        ScripCondition => 'On Create',
765        ScripAction    => 'Notify Owner and AdminCcs',
766        Template       => 'Transaction in HTML' },
767     {  Description    => 'On Create Notify Ccs',
768        ScripCondition => 'On Create',
769        ScripAction    => 'Notify Ccs',
770        Template       => 'Correspondence in HTML' },
771     {  Description    => 'On Create Notify Other Recipients',
772        ScripCondition => 'On Create',
773        ScripAction    => 'Notify Other Recipients',
774        Template       => 'Correspondence in HTML' },
775     {  Description    => 'On Owner Change Notify Owner',
776        ScripCondition => 'On Owner Change',
777        ScripAction    => 'Notify Owner',
778        Template       => 'Transaction in HTML' },
779     {  Description    => 'On Resolve Notify Requestors',
780        ScripCondition => 'On Resolve',
781        ScripAction    => 'Notify Requestors',
782        Template       => 'Resolved in HTML' },
783     {  Description    => "On transaction, add any tags in the transaction's subject to the ticket's subject",
784        ScripCondition => 'On Transaction',
785        ScripAction    => 'Extract Subject Tag',
786        Template       => 'Blank' },
787     {  Description    => 'On Forward Transaction Send forwarded message',
788        ScripCondition => 'On Forward Transaction',
789        ScripAction    => 'Send Forward',
790        Template       => 'Forward' },
791     {  Description    => 'On Forward Ticket Send forwarded message',
792        ScripCondition => 'On Forward Ticket',
793        ScripAction    => 'Send Forward',
794        Template       => 'Forward Ticket' },
795 );
796
797 @ACL = (
798     { UserId => 'root',        # - principalid
799       Right  => 'SuperUser', },
800
801     { GroupDomain => 'SystemInternal',
802       GroupType => 'privileged',
803       Right  => 'ShowApprovalsTab', },
804
805 );
806
807 # Predefined searches
808
809 @Attributes = (
810     { Name => 'Search - My Tickets',
811       Description => '[_1] highest priority tickets I own', # loc
812       Content     =>
813       { Format =>  q{'<a href="__WebPath__/Ticket/Display.html?id=__id__">__id__</a>/TITLE:#',}
814                  . q{'<a href="__WebPath__/Ticket/Display.html?id=__id__">__Subject__</a>/TITLE:Subject',}
815                  . q{Priority, QueueName, ExtendedStatus},
816         Query   => " Owner = '__CurrentUser__' AND ( Status = 'new' OR Status = 'open')",
817         OrderBy => 'Priority',
818         Order   => 'DESC'
819       },
820     },
821     { Name => 'Search - Unowned Tickets',
822       Description => '[_1] newest unowned tickets', # loc
823       Content     =>
824 # 'Take' #loc
825       { Format =>  q{'<a href="__WebPath__/Ticket/Display.html?id=__id__">__id__</a>/TITLE:#',}
826                  . q{'<a href="__WebPath__/Ticket/Display.html?id=__id__">__Subject__</a>/TITLE:Subject',}
827                  . q{QueueName, ExtendedStatus, CreatedRelative, }
828                  . q{'<A HREF="__WebPath__/Ticket/Display.html?Action=Take&id=__id__">__loc(Take)__</a>/TITLE:NBSP'},
829         Query   => " Owner = 'Nobody' AND ( Status = 'new' OR Status = 'open')",
830         OrderBy => 'Created',
831         Order   => 'DESC'
832       },
833     },
834     { Name => 'Search - Bookmarked Tickets',
835       Description => 'Bookmarked Tickets', #loc
836       Content     =>
837       { Format => q{'<a href="__WebPath__/Ticket/Display.html?id=__id__">__id__</a>/TITLE:#',}
838                 . q{'<a href="__WebPath__/Ticket/Display.html?id=__id__">__Subject__</a>/TITLE:Subject',}
839                 . q{Priority, QueueName, ExtendedStatus, Bookmark},
840         Query   => "id = '__Bookmarked__'",
841         OrderBy => 'LastUpdated',
842         Order   => 'DESC' },
843     },
844     {
845         Name        => 'HomepageSettings',
846         Description => 'HomepageSettings',
847         Content     => {
848             'body' =>                               # loc_left_pair
849               [
850                 {
851                     type => 'system',
852                     name => 'My Tickets',           # loc
853                 },
854                 {
855                     type => 'system',
856                     name => 'Unowned Tickets'       # loc
857                 },
858                 {
859                     type => 'system',
860                     name => 'Bookmarked Tickets'    # loc
861                 },
862                 {
863                     type => 'component',
864                     name => 'QuickCreate'           # loc
865                 },
866               ],
867             'sidebar' =>                            # loc_left_pair
868               [
869                 {
870                     type => 'component',
871                     name => 'MyReminders'           # loc
872                 },
873                 {
874                     type => 'component',
875                     name => 'Quicksearch'           # loc
876                 },
877                 {
878                     type => 'component',
879                     name => 'Dashboards'            # loc
880                 },
881                 {
882                     type => 'component',
883                     name => 'RefreshHomepage'       # loc
884                 },
885               ],
886         },
887     },
888 );