software:requesttracker:autoqueue
Differences
This shows you the differences between two versions of the page.
| — | software:requesttracker:autoqueue [2024/08/30 06:29] (current) – created - external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Auto-Queue scrips ====== | ||
| + | ===== Auto Queue based on sender e-mail ===== | ||
| + | |||
| + | This scrip (not a typo, a scrip is an RT Script) can be added in the global scrip section and will automatically put a ticket in the proper queue based on the sender' | ||
| + | |||
| + | The hash %domain_map contains a [[https:// | ||
| + | |||
| + | Note: A handy regex tester I use quite a bit is located at [[https:// | ||
| + | |||
| + | * Description: | ||
| + | * Condition: On Create | ||
| + | * Action: User Defined | ||
| + | * Template: Blank | ||
| + | * Enabled: check | ||
| + | * Custom Condition: empty | ||
| + | * Custom action preparation code: <code perl> | ||
| + | * Custom action commit code: code which follows | ||
| + | |||
| + | <code perl> | ||
| + | # Written by RWR, taken from | ||
| + | # https:// | ||
| + | |||
| + | # hash of all the possible domains, and matching queues | ||
| + | |||
| + | my %domain_map = ( | ||
| + | ' | ||
| + | ' | ||
| + | ); | ||
| + | |||
| + | #Check each of our defined domains for a match | ||
| + | foreach my $domainKey (keys %domain_map ) { | ||
| + | if ( $self-> | ||
| + | # Domain matches - move to the right queue | ||
| + | $self-> | ||
| + | } | ||
| + | } | ||
| + | return 1; | ||
| + | </ | ||
| + | |||
| + | ===== Placing mail to different addresses in different queues ===== | ||
| + | |||
| + | This is easy to do in RT, if you are using aliases to route them. For example, if you have // | ||
| + | <code bash> | ||
| + | support: " | ||
| + | support-comment: | ||
| + | </ | ||
| + | which will redirect the incoming mail to Request Tracker' | ||
| + | |||
| + | In order to add new clients, you can create different aliases for each to correspond with; in this case, client1 and client2, which would go into the queue' | ||
| + | <code bash> | ||
| + | support: " | ||
| + | support-comment: | ||
| + | client1: " | ||
| + | client1-comment: | ||
| + | client2: " | ||
| + | client2-comment: | ||
| + | </ | ||
| + | |||
| + | Now, mail sent to client1@example.com would be forwarded to client1@rt.example.com, | ||
software/requesttracker/autoqueue.1724978283.txt.gz · Last modified: (external edit)
