troubleshooting
This commit is contained in:
parent
5d31b1aa1b
commit
f1e0df12ea
@ -1,7 +1,7 @@
|
||||
#!/usr/bin/php
|
||||
<?php
|
||||
// Debug Mode will show more information.
|
||||
$debugMode = FALSE;
|
||||
$debugMode = TRUE;
|
||||
|
||||
// Dry Run Mode will suppress sending an e-mail to Redmine. Only really useful with debug mode on.
|
||||
$dryRun = FALSE;
|
||||
@ -18,7 +18,7 @@ $params = array(
|
||||
'unknown-user' => 'create',
|
||||
'allow-override' => 'tracker,priority,category,status,project,assigned_to,start_date,due_date,estimated_hours,done_ratio',
|
||||
'project' => 'catch',
|
||||
'tracker' => 'support',
|
||||
'tracker' => 'general',
|
||||
);
|
||||
|
||||
|
||||
@ -34,7 +34,7 @@ while (!feof($fd)) {
|
||||
//if this line is the "delivered-to", extract the subaddress, if there is one.
|
||||
if(preg_match("/^delivered-to: (.*)/i", $line, $matches)) {
|
||||
$deliveredTo = $matches[1];
|
||||
if(preg_match("/support\+(\S*)@/i", $deliveredTo, $matches)) {
|
||||
if(preg_match("/support_mt.*\+(\S*)@/i", $deliveredTo, $matches)) {
|
||||
$project = $matches[1];
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user