Add issue matching based on standard MIME header references

Standard Redmine notifications encode the issue reference into the Message-Id
and References headers and the incoming email handling mechanism parses
it. This is now added to the helpdesk mailer to be consistent with the
standard Redmine mailer.