<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;">
<div><br>
</div>
<div>Hi</div>
<div><br>
</div>
<div>I recently followed the <a href="http://requesttracker.wikia.com/wiki/SpamFiltering">http://requesttracker.wikia.com/wiki/SpamFiltering</a> and set up Spamassassin and filtering according to method 1b, by adding a Global Scrip like this:</div>
<div><br>
</div>
<div>Scrip: On Create * Action:</div>
<div><br>
</div>
<div>Action code:</div>
<div>
<div># Match spamassasins spam-flag</div>
<div><br>
</div>
<div> my $inMessage = $self->TransactionObj->Attachments->First;</div>
<div> return 0 if (!$inMessage); # if no message attachment - assume web UI</div>
<div> return 0 if (!$inMessage->GetHeader('Received')); # exit if not email message</div>
<div> </div>
<div> my $spamFlag = $inMessage->GetHeader('X-Spam-Flag');</div>
<div> return ( $spamFlag !~ 'YES' ) ? 0 : 1;</div>
</div>
<div><br>
</div>
<div>Commit code:</div>
<div>
<div>my $newqueue = 'spam';</div>
<div>my ($status, $msg) = $self->TicketObj->SetQueue($newqueue);</div>
<div>return $status ? undef : 1;</div>
</div>
<div><br>
</div>
<div>and that works flawlessly – BUT I still get an e-mail notification to the requestor and the admincc’s of the original queue the spam was sent to.</div>
<div><br>
</div>
<div>Is there a way to make sure that if the “On Create * Action” scrip was run, then it should not run the “<a href="https://itsupport.student.dtu.dk/Admin/Scrips/Modify.html?id=3" style="color: rgb(102, 102, 102); text-decoration: none; font-weight: bold; font-family: arial, helvetica, sans-serif; font-size: 13px; line-height: 16.0029983520508px;">On
Create Autoreply To Requestors</a>” or the “<a href="https://itsupport.student.dtu.dk/Admin/Scrips/Modify.html?id=4" style="color: rgb(102, 102, 102); text-decoration: none; font-weight: bold; font-family: arial, helvetica, sans-serif; font-size: 13px; line-height: 16.0029983520508px;">On
Create Notify AdminCcs</a>” ?</div>
<div><br>
</div>
<div>I tried changing the order of my “On Create” Scrips so now they have the following order ( see below ) but it doesn’t seem to help.</div>
<div>
<table cellspacing="0" class="collection collection-as-table" style="font-size: 13px; width: 1189px; border-spacing: 0px; border-collapse: collapse; margin-top: 1em; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(204, 204, 204); margin-bottom: 2em; color: rgb(0, 0, 0); font-family: arial, helvetica, sans-serif; line-height: 16.0029983520508px;">
<tbody>
<tr class=" oddline" style="border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); border-right-width: 1px; border-right-style: solid; border-right-color: rgb(204, 204, 204);">
<td class="collection-as-table" align="right" style="padding: 0.5em 0.5em 0.25em 1em; border-top-width: 1px; border-top-style: solid; border-top-color: rgb(204, 204, 204); background: rgb(238, 238, 238);">
<a href="https://itsupport.student.dtu.dk/Admin/Scrips/Modify.html?id=15" style="color: rgb(102, 102, 102); text-decoration: none; font-weight: bold;">15</a></td>
<td class="collection-as-table" style="padding-right: 0.5em; padding-bottom: 0.25em; padding-top: 0.5em; border-top-width: 1px; border-top-style: solid; border-top-color: rgb(204, 204, 204); background: rgb(238, 238, 238);">
<a href="https://itsupport.student.dtu.dk/Admin/Scrips/Modify.html?id=15" style="color: rgb(102, 102, 102); text-decoration: none; font-weight: bold;">On Create * Action</a></td>
<td class="collection-as-table" style="padding-right: 0.5em; padding-bottom: 0.25em; padding-top: 0.5em; border-top-width: 1px; border-top-style: solid; border-top-color: rgb(204, 204, 204); background: rgb(238, 238, 238);">
On Create</td>
<td class="collection-as-table" style="padding-right: 0.5em; padding-bottom: 0.25em; padding-top: 0.5em; border-top-width: 1px; border-top-style: solid; border-top-color: rgb(204, 204, 204); background: rgb(238, 238, 238);">
User Defined</td>
<td class="collection-as-table" style="padding-right: 0.5em; padding-bottom: 0.25em; padding-top: 0.5em; border-top-width: 1px; border-top-style: solid; border-top-color: rgb(204, 204, 204); background: rgb(238, 238, 238);">
Blank</td>
<td class="collection-as-table" style="padding-right: 1em; padding-bottom: 0.25em; padding-top: 0.5em; border-top-width: 1px; border-top-style: solid; border-top-color: rgb(204, 204, 204); background: rgb(238, 238, 238);">
Enabled</td>
</tr>
<tr class=" evenline" style="border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); border-right-width: 1px; border-right-style: solid; border-right-color: rgb(204, 204, 204);">
<td class="collection-as-table" align="right" style="padding: 0.5em 0.5em 0.25em 1em; border-top-width: 1px; border-top-style: solid; border-top-color: rgb(204, 204, 204); background: rgb(255, 255, 255);">
<a href="https://itsupport.student.dtu.dk/Admin/Scrips/Modify.html?id=3" style="color: rgb(102, 102, 102); text-decoration: none; font-weight: bold;">3</a></td>
<td class="collection-as-table" style="padding-right: 0.5em; padding-bottom: 0.25em; padding-top: 0.5em; border-top-width: 1px; border-top-style: solid; border-top-color: rgb(204, 204, 204); background: rgb(255, 255, 255);">
<a href="https://itsupport.student.dtu.dk/Admin/Scrips/Modify.html?id=3" style="color: rgb(102, 102, 102); text-decoration: none; font-weight: bold;">On Create Autoreply To Requestors</a></td>
<td class="collection-as-table" style="padding-right: 0.5em; padding-bottom: 0.25em; padding-top: 0.5em; border-top-width: 1px; border-top-style: solid; border-top-color: rgb(204, 204, 204); background: rgb(255, 255, 255);">
On Create</td>
<td class="collection-as-table" style="padding-right: 0.5em; padding-bottom: 0.25em; padding-top: 0.5em; border-top-width: 1px; border-top-style: solid; border-top-color: rgb(204, 204, 204); background: rgb(255, 255, 255);">
Autoreply To Requestors</td>
<td class="collection-as-table" style="padding-right: 0.5em; padding-bottom: 0.25em; padding-top: 0.5em; border-top-width: 1px; border-top-style: solid; border-top-color: rgb(204, 204, 204); background: rgb(255, 255, 255);">
Autoreply with password</td>
<td class="collection-as-table" style="padding-right: 1em; padding-bottom: 0.25em; padding-top: 0.5em; border-top-width: 1px; border-top-style: solid; border-top-color: rgb(204, 204, 204); background: rgb(255, 255, 255);">
Enabled</td>
</tr>
<tr class=" oddline" style="border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); border-right-width: 1px; border-right-style: solid; border-right-color: rgb(204, 204, 204);">
<td class="collection-as-table" align="right" style="padding: 0.5em 0.5em 0.25em 1em; border-top-width: 1px; border-top-style: solid; border-top-color: rgb(204, 204, 204); background: rgb(238, 238, 238);">
<a href="https://itsupport.student.dtu.dk/Admin/Scrips/Modify.html?id=4" style="color: rgb(102, 102, 102); text-decoration: none; font-weight: bold;">4</a></td>
<td class="collection-as-table" style="padding-right: 0.5em; padding-bottom: 0.25em; padding-top: 0.5em; border-top-width: 1px; border-top-style: solid; border-top-color: rgb(204, 204, 204); background: rgb(238, 238, 238);">
<a href="https://itsupport.student.dtu.dk/Admin/Scrips/Modify.html?id=4" style="color: rgb(102, 102, 102); text-decoration: none; font-weight: bold;">On Create Notify AdminCcs</a></td>
<td class="collection-as-table" style="padding-right: 0.5em; padding-bottom: 0.25em; padding-top: 0.5em; border-top-width: 1px; border-top-style: solid; border-top-color: rgb(204, 204, 204); background: rgb(238, 238, 238);">
On Create</td>
<td class="collection-as-table" style="padding-right: 0.5em; padding-bottom: 0.25em; padding-top: 0.5em; border-top-width: 1px; border-top-style: solid; border-top-color: rgb(204, 204, 204); background: rgb(238, 238, 238);">
Notify AdminCcs</td>
<td class="collection-as-table" style="padding-right: 0.5em; padding-bottom: 0.25em; padding-top: 0.5em; border-top-width: 1px; border-top-style: solid; border-top-color: rgb(204, 204, 204); background: rgb(238, 238, 238);">
Transaction</td>
<td class="collection-as-table" style="padding-right: 1em; padding-bottom: 0.25em; padding-top: 0.5em; border-top-width: 1px; border-top-style: solid; border-top-color: rgb(204, 204, 204); background: rgb(238, 238, 238);">
Enabled</td>
</tr>
</tbody>
</table>
</div>
<div>Any pointers in the right direction would be appreciated</div>
<div><br>
</div>
<div>
<div>Kind Regards,</div>
<div>Sidsel Jensen</div>
<div><br>
</div>
</div>
</body>
</html>