Skip to content

Commit

Permalink
If set, use Reply-To: address for the ticket creator when creating ti…
Browse files Browse the repository at this point in the history
…ckets from emails.
  • Loading branch information
yunosh committed Mar 15, 2016
1 parent 57e829d commit 9c6ba45
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions whups/lib/Mail.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ public static function processMail($text, array $info, $auth_user = null)
$headers->getValue('X-List-Administrivia') == 'Yes') {
return true;
}
if ($reply_to = $headers->getValue('reply-to')) {
$from = $reply_to;
}

// Use the message subject as the ticket summary.
$info['summary'] = trim($headers->getValue('subject'));
Expand Down

0 comments on commit 9c6ba45

Please sign in to comment.