Merge branch 'patch-1' of https://github.com/gjones2/Freeside
[freeside.git] / rt / 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
62     { Name        => 'Notify Requestors and Ccs as Comment',              # loc
63       Description => 'Send mail to requestors and Ccs as a comment',      # loc
64       ExecModule  => 'NotifyAsComment',
65       Argument    => 'Requestor,Cc' },
66
67 # deprecated
68 #    { Name        => 'Notify Requestors and Ccs',                         # loc
69 #      Description => 'Send mail to requestors and Ccs',                   # loc
70 #      ExecModule  => 'Notify',
71 #      Argument    => 'Requestor,Cc' },
72
73 # not yet deprecated
74     { Name        => 'Notify Owner, Requestors, Ccs and AdminCcs as Comment',    # loc
75       Description => 'Send mail to owner and all watchers as a "comment"',          # loc
76       ExecModule  => 'NotifyAsComment',
77       Argument    => 'All' },
78     { Name        => 'Notify Owner, Requestors, Ccs and AdminCcs',               # loc
79       Description => 'Send mail to owner and all watchers',                         # loc
80       ExecModule  => 'Notify',
81       Argument    => 'All' },
82     { Name        => 'Notify Other Recipients as Comment',                # loc
83       Description => 'Sends mail to explicitly listed Ccs and Bccs',      # loc
84       ExecModule  => 'NotifyAsComment',
85       Argument    => 'OtherRecipients' },
86 # deprecated
87 #    { Name        => 'Notify Other Recipients',                           # loc
88 #      Description => 'Sends mail to explicitly listed Ccs and Bccs',      # loc
89 #      ExecModule  => 'Notify',
90 #      Argument    => 'OtherRecipients' },
91
92     { Name        => 'User Defined',                                      # loc
93       Description => 'Perform a user-defined action',                     # loc
94       ExecModule  => 'UserDefined', },
95     {  Name        => 'Create Tickets',                                    # loc
96        Description =>
97          'Create new tickets based on this scrip\'s template',             # loc
98        ExecModule => 'CreateTickets', },
99     { Name        => 'Open Tickets',                                      # loc
100       Description => 'Open tickets on correspondence',                    # loc
101       ExecModule  => 'AutoOpen' },
102     { Name        => 'Extract Subject Tag',                               # loc
103       Description => 'Extract tags from a Transaction\'s subject and add them to the Ticket\'s subject.', # loc
104       ExecModule  => 'ExtractSubjectTag' },
105
106     #freeside
107     { Name        => 'Set Priority',
108       Description => 'Set ticket priority',
109       ExecModule  => 'SetPriority',
110       Argument    => '',
111     },
112     { Name        => 'Cancel Scheduled Resolve',
113       Description => 'Set ticket not to resolve in the future',
114       ExecModule  => 'SetWillResolve',
115       Argument    => '',
116     },
117     { Name        => 'Scheduled Resolve',
118       Description => 'Resolve ticket if its WillResolve date has passed',
119       ExecModule  => 'ScheduledResolve',
120       Argument    => '',
121     },
122 # combine these into a single action so they can see each other in the headers
123     { Name        => 'Notify Requestors, Ccs, and Other Recipients',
124       Description => 'Send mail to requestors, watchers, and explicit Ccs',
125       ExecModule  => 'Notify',
126       Argument    => 'Requestor,Cc,OtherRecipients',
127     },
128 );
129
130 @ScripConditions = (
131     { Name                 => 'On Create',                                # loc
132       Description          => 'When a ticket is created',                 # loc
133       ApplicableTransTypes => 'Create',
134       ExecModule           => 'AnyTransaction', },
135
136     { Name                 => 'On Transaction',                           # loc
137       Description          => 'When anything happens',                    # loc
138       ApplicableTransTypes => 'Any',
139       ExecModule           => 'AnyTransaction', },
140     {
141
142       Name                 => 'On Correspond',                             # loc
143       Description          => 'Whenever correspondence comes in',          # loc
144       ApplicableTransTypes => 'Correspond',
145       ExecModule           => 'AnyTransaction', },
146
147     {
148
149       Name                 => 'On Forward',                                # loc
150       Description          => 'Whenever a ticket or transaction is forwarded', # loc
151       ApplicableTransTypes => 'Forward Transaction,Forward Ticket',
152       ExecModule           => 'AnyTransaction', },
153
154     {
155
156       Name                 => 'On Forward Ticket',                         # loc
157       Description          => 'Whenever a ticket is forwarded',            # loc
158       ApplicableTransTypes => 'Forward Ticket',
159       ExecModule           => 'AnyTransaction', },
160
161     {
162
163       Name                 => 'On Forward Transaction',                    # loc
164       Description          => 'Whenever a transaction is forwarded',       # loc
165       ApplicableTransTypes => 'Forward Transaction',
166       ExecModule           => 'AnyTransaction', },
167
168     {
169
170       Name                 => 'On Comment',                                # loc
171       Description          => 'Whenever comments come in',                 # loc
172       ApplicableTransTypes => 'Comment',
173       ExecModule           => 'AnyTransaction' },
174     {
175
176       Name                 => 'On Status Change',                          # loc
177       Description          => 'Whenever a ticket\'s status changes',       # loc
178       ApplicableTransTypes => 'Status',
179       ExecModule           => 'AnyTransaction',
180
181     },
182     {
183
184       Name                 => 'On Priority Change',                       # loc
185       Description          => 'Whenever a ticket\'s priority changes',    # loc
186       ApplicableTransTypes => 'Set',
187       ExecModule           => 'PriorityChange',
188     },
189     {
190
191       Name                 => 'On Owner Change',                           # loc
192       Description          => 'Whenever a ticket\'s owner changes',        # loc
193       ApplicableTransTypes => 'Any',
194       ExecModule           => 'OwnerChange',
195
196     },
197     {
198
199       Name                 => 'On Queue Change',                           # loc
200       Description          => 'Whenever a ticket\'s queue changes',        # loc
201       ApplicableTransTypes => 'Set',
202       ExecModule           => 'QueueChange',
203
204     },
205     {  Name                 => 'On Resolve',                               # loc
206        Description          => 'Whenever a ticket is resolved',            # loc
207        ApplicableTransTypes => 'Status',
208        ExecModule           => 'StatusChange',
209        Argument             => 'resolved'
210
211     },
212     {  Name                 => 'On Reject',                                # loc
213        Description          => 'Whenever a ticket is rejected',            # loc
214        ApplicableTransTypes => 'Status',
215        ExecModule           => 'StatusChange',
216        Argument             => 'rejected'
217
218     },
219     {  Name                 => 'User Defined',                             # loc
220        Description          => 'Whenever a user-defined condition occurs', # loc
221        ApplicableTransTypes => 'Any',
222        ExecModule           => 'UserDefined'
223
224     },
225
226     {  Name                 => 'On Close',                                 # loc
227        Description          => 'Whenever a ticket is closed', # loc
228        ApplicableTransTypes => 'Status,Set',
229        ExecModule           => 'CloseTicket',
230     },
231     {  Name                 => 'On Reopen',                                # loc
232        Description          => 'Whenever a ticket is reopened', # loc
233        ApplicableTransTypes => 'Status,Set',
234        ExecModule           => 'ReopenTicket',
235     },
236
237     #freeside
238     {  Name                 => 'On Custom Field Transaction',
239        Description          => 'When a custom field is changed',
240        ExecModule           => 'CustomFieldTransaction',
241        ApplicableTransTypes => 'Any',
242     },
243     {  Name                 => 'On Custom Field Change',
244        Description          => 'When a custom field is changed to some value',
245        ExecModule           => 'CustomFieldChange',
246        ApplicableTransTypes => 'Any',
247     },
248
249 );
250
251 @Templates = (
252     { Queue       => '0',
253       Name        => 'Blank',                                             # loc
254       Description => 'A blank template',                                  # loc
255       Content     => '', },
256     {  Queue       => '0',
257        Name        => 'Autoreply',                                         # loc
258        Description => 'Default Autoresponse template',                     # loc
259        Content     => 'Subject: AutoReply: {$Ticket->Subject}
260
261
262 Greetings,
263
264 This message has been automatically generated in response to the
265 creation of a trouble ticket regarding:
266         "{$Ticket->Subject()}", 
267 a summary of which appears below.
268
269 There is no need to reply to this message right now.  Your ticket has been
270 assigned an ID of { $Ticket->SubjectTag }.
271
272 Please include the string:
273
274          { $Ticket->SubjectTag }
275
276 in the subject line of all future correspondence about this issue. To do so, 
277 you may reply to this message.
278
279                         Thank you,
280                         {$Ticket->QueueObj->CorrespondAddress()}
281
282 -------------------------------------------------------------------------
283 {$Transaction->Content()}
284 '
285     },
286
287     {  Queue       => '0',
288        Name        => 'Transaction',                     # loc
289        Description => 'Default transaction template',    # loc
290        Content     => 'RT-Attach-Message: yes
291
292
293 {$Transaction->CreatedAsString}: Request {$Ticket->id} was acted upon.
294  Transaction: {$Transaction->Description}
295        Queue: {$Ticket->QueueObj->Name}
296      Subject: {$Transaction->Subject || $Ticket->Subject || "(No subject given)"}
297        Owner: {$Ticket->OwnerObj->Name}
298   Requestors: {$Ticket->RequestorAddresses}
299       Status: {$Ticket->Status}
300  Ticket <URL: {RT->Config->Get(\'WebURL\')}Ticket/Display.html?id={$Ticket->id} >
301
302
303 {$Transaction->Content()}
304 '
305     },
306
307     {
308
309       Queue       => '0',
310       Name        => 'Admin Correspondence',                     # loc
311       Description => 'Default admin correspondence template',    # loc
312       Content     => 'RT-Attach-Message: yes
313
314
315 <URL: {RT->Config->Get(\'WebURL\')}Ticket/Display.html?id={$Ticket->id} >
316
317 {$Transaction->Content()}
318 '
319     },
320
321     {  Queue       => '0',
322        Name        => 'Correspondence',                          # loc
323        Description => 'Default correspondence template',         # loc
324        Content     => 'RT-Attach-Message: yes
325
326 {$Transaction->Content()}
327 '
328     },
329
330     {  Queue       => '0',
331        Name        => 'Admin Comment',                           # loc
332        Description => 'Default admin comment template',          # loc
333        Content     =>
334 'Subject: [Comment] {my $s=($Transaction->Subject||$Ticket->Subject||""); $s =~ s/\\[Comment\\]\\s*//g; $s =~ s/^Re:\\s*//i; $s;}
335 RT-Attach-Message: yes
336
337
338 {RT->Config->Get(\'WebURL\')}Ticket/Display.html?id={$Ticket->id}
339 This is a comment.  It is not sent to the Requestor(s):
340
341 {$Transaction->Content()}
342 '
343     },
344
345     {  Queue       => '0',
346        Name        => 'Status Change',                                     # loc
347        Description => 'Ticket status changed',                             # loc
348        Content     => 'Subject: Status Changed to: {$Transaction->NewValue}
349
350
351 {RT->Config->Get(\'WebURL\')}Ticket/Display.html?id={$Ticket->id}
352
353 {$Transaction->Content()}
354 '
355     },
356
357     {
358
359       Queue       => '0',
360       Name        => 'Resolved',                 # loc
361       Description => 'Ticket Resolved',          # loc
362       Content     => 'Subject: Resolved: {$Ticket->Subject}
363
364 According to our records, your request has been resolved. If you have any
365 further questions or concerns, please respond to this message.
366 '
367     },
368     {  Queue       => '___Approvals',
369        Name        => "New Pending Approval",    # loc
370        Description =>
371          "Notify Owners and AdminCcs of new items pending their approval", # loc
372        Content => 'Subject: New Pending Approval: {$Ticket->Subject}
373
374 Greetings,
375
376 There is a new item pending your approval: "{$Ticket->Subject()}", 
377 a summary of which appears below.
378
379 Please visit {RT->Config->Get(\'WebURL\')}Approvals/Display.html?id={$Ticket->id}
380 to approve or reject this ticket, or {RT->Config->Get(\'WebURL\')}Approvals/ to
381 batch-process all your pending approvals.
382
383 -------------------------------------------------------------------------
384 {$Transaction->Content()}
385 '
386     },
387     {  Queue       => '___Approvals',
388        Name        => "Approval Passed",    # loc
389        Description =>
390          "Notify Requestor of their ticket has been approved by some approver", # loc
391        Content => 'Subject: Ticket Approved: {$Ticket->Subject}
392
393 Greetings,
394
395 Your ticket has been approved by { eval { $Approver->Name } }.
396 Other approvals may be pending.
397
398 Approver\'s notes: { $Notes }
399 '
400     },
401     {  Queue       => '___Approvals',
402        Name        => "All Approvals Passed",    # loc
403        Description =>
404          "Notify Requestor of their ticket has been approved by all approvers", # loc
405        Content => 'Subject: Ticket Approved: {$Ticket->Subject}
406
407 Greetings,
408
409 Your ticket has been approved by { eval { $Approver->Name } }.
410 Its Owner may now start to act on it.
411
412 Approver\'s notes: { $Notes }
413 '
414     },
415     {  Queue       => '___Approvals',
416        Name        => "Approval Rejected",    # loc
417        Description =>
418          "Notify Owner of their rejected ticket", # loc
419        Content => 'Subject: Ticket Rejected: {$Ticket->Subject}
420
421 Greetings,
422
423 Your ticket has been rejected by { eval { $Approver->Name } }.
424
425 Approver\'s notes: { $Notes }
426 '
427     },
428     {  Queue       => '___Approvals',
429        Name        => "Approval Ready for Owner",    # loc
430        Description =>
431          "Notify Owner of their ticket has been approved and is ready to be acted on", # loc
432        Content => 'Subject: Ticket Approved: {$Ticket->Subject}
433
434 Greetings,
435
436 The ticket has been approved, you may now start to act on it.
437
438 '
439     },
440     {  Queue       => 0,
441        Name        => "Forward",    # loc
442        Description => "Heading of a forwarded message", # loc
443        Content => q{
444 This is a forward of transaction #{$Transaction->id} of ticket #{ $Ticket->id }
445 }
446     },
447     {  Queue       => 0,
448        Name        => "Forward Ticket",    # loc
449        Description => "Heading of a forwarded Ticket", # loc
450        Content => q{
451
452 This is a forward of ticket #{ $Ticket->id }
453 }
454     },
455     {  Queue       => 0,
456        Name        => "Error: public key",    # loc
457        Description =>
458          "Inform user that he has problems with public key and couldn't recieve encrypted content", # loc
459        Content => q{Subject: We have no your public key or it's wrong
460
461 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.
462 }
463     },
464     {  Queue       => 0,
465        Name        => "Error to RT owner: public key",    # loc
466        Description =>
467          "Inform RT owner that user(s) have problems with public keys", # loc
468        Content => q{Subject: Some users have problems with public keys
469
470 You received this message as RT has problems with public keys of the following user:
471 {
472     foreach my $e ( @BadRecipients ) {
473         $OUT .= "* ". $e->{'Message'} ."\n";
474     }
475 }}
476     },
477     {  Queue       => 0,
478        Name        => "Error: no private key",    # loc
479        Description =>
480          "Inform user that we received an encrypted email and we have no private keys to decrypt", # loc
481        Content => q{Subject: we received message we cannot decrypt
482
483 You sent an encrypted message with subject '{ $Message->head->get('Subject') }',
484 but we have no private key it's encrypted to.
485
486 Please, check that you encrypt messages with correct keys
487 or contact the system administrator.}
488     },
489     {  Queue       => 0,
490        Name        => "Error: bad GnuPG data",    # loc
491        Description =>
492          "Inform user that a message he sent has invalid GnuPG data", # loc
493        Content => q{Subject: We received a message we cannot handle
494
495 You sent us a message that we cannot handle due to corrupted GnuPG signature or encrypted block. we get the following error(s):
496 { foreach my $msg ( @Messages ) {
497     $OUT .= "* $msg\n";
498   }
499 }}
500     },
501     {  Queue       => 0,
502        Name        => "PasswordChange",    # loc
503        Description =>
504          "Inform user that his password has been reset", # loc
505        Content => q{Subject: [{RT->Config->Get('rtname')}] Password reset
506
507 Greetings,
508
509 Someone at {$ENV{'REMOTE_ADDR'}} requested a password reset for you on {RT->Config->Get('WebURL')}
510
511 Your new password is:
512   {$NewPassword}
513 }
514     },
515
516                {   Queue       => '0',
517                    Name        => 'Email Digest',    # loc
518                    Description => 'Email template for periodic notification digests',  # loc
519                    Content => q[Subject: RT Email Digest
520
521 { $Argument }
522 ],
523                },
524
525 {
526     Queue       => 0,
527     Name        => "Error: Missing dashboard",    # loc
528     Description =>
529       "Inform user that a dashboard he subscribed to is missing", # loc
530     Content => q{Subject: [{RT->Config->Get('rtname')}] Missing dashboard!
531
532 Greetings,
533
534 You are subscribed to a dashboard that is currently missing. Most likely, the dashboard was deleted.
535
536 RT will remove this subscription as it is no longer useful. Here's the information RT had about your subscription:
537
538 DashboardID:  { $SubscriptionObj->SubValue('DashboardId') }
539 Frequency:    { $SubscriptionObj->SubValue('Frequency') }
540 Hour:         { $SubscriptionObj->SubValue('Hour') }
541 {
542     $SubscriptionObj->SubValue('Frequency') eq 'weekly'
543     ? "Day of week:  " . $SubscriptionObj->SubValue('Dow')
544     : $SubscriptionObj->SubValue('Frequency') eq 'monthly'
545       ? "Day of month: " . $SubscriptionObj->SubValue('Dom')
546       : ''
547 }
548 }
549 },
550     {  Queue       => 0,
551        Name        => 'Custom Field Transaction',
552        Description => 'Custom field value changed',
553        Content     => q[Subject: {$Transaction->BriefDescription()}
554
555 {RT->Config->Get('WebURL')}Ticket/Display.html?id={$Ticket->id}
556
557 {$Transaction->Content()}
558 ],
559     },
560
561 );
562
563 @Scrips = (
564     {  Description    => 'On Correspond Open Tickets',
565        ScripCondition => 'On Correspond',
566        ScripAction    => 'Open Tickets',
567        Template       => 'Blank' },
568     {  Description    => 'On Owner Change Notify Owner',
569        ScripCondition => 'On Owner Change',
570        ScripAction    => 'Notify Owner',
571        Template       => 'Transaction' },
572     {  Description    => 'On Create Autoreply To Requestors',
573        ScripCondition => 'On Create',
574        ScripAction    => 'AutoReply To Requestors',
575        Template       => 'AutoReply' },
576     {  Description    => 'On Create Notify AdminCcs',
577        ScripCondition => 'On Create',
578        ScripAction    => 'Notify AdminCcs',
579        Template       => 'Transaction' },
580     {  Description    => 'On Correspond Notify AdminCcs',
581        ScripCondition => 'On Correspond',
582        ScripAction    => 'Notify AdminCcs',
583        Template       => 'Admin Correspondence' },
584 #    {  Description    => 'On Correspond Notify Requestors and Ccs',
585 #       ScripCondition => 'On Correspond',
586 #       ScripAction    => 'Notify Requestors And Ccs',
587 #       Template       => 'Correspondence' },
588 #    {  Description    => 'On Correspond Notify Other Recipients',
589 #       ScripCondition => 'On Correspond',
590 #       ScripAction    => 'Notify Other Recipients',
591 #       Template       => 'Correspondence' },
592     {  Description    => 'On Correspond Notify Requestors, Ccs, and Other Recipients',
593        ScripCondition => 'On Correspond',
594        ScripAction    => 'Notify Requestors, Ccs, and Other Recipients',
595        Template       => 'Correspondence', },
596     {  Description    => 'On Comment Notify AdminCcs as Comment',
597        ScripCondition => 'On Comment',
598        ScripAction    => 'Notify AdminCcs As Comment',
599        Template       => 'Admin Comment' },
600     {  Description    => 'On Comment Notify Other Recipients as Comment',
601        ScripCondition => 'On Comment',
602        ScripAction    => 'Notify Other Recipients As Comment',
603        Template       => 'Correspondence' },
604     {  Description    => 'On Resolve Notify Requestors',
605        ScripCondition => 'On Resolve',
606        ScripAction    => 'Notify Requestors',
607        Template       => 'Resolved' },
608     {  Description    => "On transaction, add any tags in the transaction's subject to the ticket's subject",
609        ScripCondition => 'On Transaction',
610        ScripAction    => 'Extract Subject Tag',
611        Template       => 'Blank' },
612     {  Description    => 'On Correspond, cancel future resolve',
613        ScripCondition => 'On Correspond',
614        ScripAction    => 'Cancel Scheduled Resolve',
615        Template       => 'Blank' },
616 );
617
618 @ACL = (
619     { UserId => 'root',        # - principalid
620       Right  => 'SuperUser', },
621
622     { GroupDomain => 'SystemInternal',
623       GroupType => 'privileged',
624       Right  => 'ShowApprovalsTab', },
625
626 );
627
628 # Predefined searches
629
630 @Attributes = (
631     { Name => 'Search - My Tickets',
632       Description => '[_1] highest priority tickets I own', # loc
633       Content     =>
634       { Format =>  q{'<a href="__WebPath__/Ticket/Display.html?id=__id__">__id__</a>/TITLE:#',}
635                  . q{'<a href="__WebPath__/Ticket/Display.html?id=__id__">__Subject__</a>/TITLE:Subject',}
636                  . q{Priority, QueueName, ExtendedStatus},
637         Query   => " Owner = '__CurrentUser__' AND ( Status = 'new' OR Status = 'open')",
638         OrderBy => 'Priority',
639         Order   => 'DESC'
640       },
641     },
642     { Name => 'Search - Unowned Tickets',
643       Description => '[_1] newest unowned tickets', # loc
644       Content     =>
645 # 'Take' #loc
646       { Format =>  q{'<a href="__WebPath__/Ticket/Display.html?id=__id__">__id__</a>/TITLE:#',}
647                  . q{'<a href="__WebPath__/Ticket/Display.html?id=__id__">__Subject__</a>/TITLE:Subject',}
648                  . q{QueueName, ExtendedStatus, CreatedRelative, }
649                  . q{'<A HREF="__WebPath__/Ticket/Display.html?Action=Take&id=__id__">__loc(Take)__</a>/TITLE:NBSP'},
650         Query   => " Owner = 'Nobody' AND ( Status = 'new' OR Status = 'open')",
651         OrderBy => 'Created',
652         Order   => 'DESC'
653       },
654     },
655     { Name => 'Search - Bookmarked Tickets',
656       Description => 'Bookmarked Tickets', #loc
657       Content     =>
658       { Format => q{'<a href="__WebPath__/Ticket/Display.html?id=__id__">__id__</a>/TITLE:#',}
659                 . q{'<a href="__WebPath__/Ticket/Display.html?id=__id__">__Subject__</a>/TITLE:Subject',}
660                 . q{Priority, QueueName, ExtendedStatus, Bookmark},
661         Query   => "id = '__Bookmarked__'",
662         OrderBy => 'LastUpdated',
663         Order   => 'DESC' },
664     },
665     { Name => 'HomepageSettings',
666       Description => 'HomepageSettings',
667       Content =>
668       { 'body' => # loc
669         [ { type => 'system', name => 'My Tickets' },
670           { type => 'system', name => 'Unowned Tickets' },
671           { type => 'system', name => 'Bookmarked Tickets' },
672           { type => 'component', name => 'QuickCreate' },
673         ],
674         'summary' => # loc
675         [
676           { type => 'component', name => 'MyReminders' },
677           { type => 'component', name => 'Quicksearch' },
678           { type => 'component', name => 'Dashboards' },
679           { type => 'component', name => 'RefreshHomepage' },
680         ],
681       },
682     },
683 );
684
685 # freeside upgrade
686 # Obsolete/erroneous scrips
687 # If
688 #   $Delete_Scrips{conditionname}{actionname}{templatename}
689 # exists, and the scrip was created by the system user, it 
690 # will be deleted on upgrade.  Lowercase all the names here.
691
692 %Delete_Scrips = (
693   'on correspond' => {
694     'notify requestors and ccs' => { 'correspondence' => 1 },
695     'notify other recipients'   => { 'correspondence' => 1 },
696   }
697 );
698