ticketId was not recognized in multi-line References header

ticketId was not recognized in multi-line References header of incomming reply-to e-mail. Therefore the message was ignored and thrown away.
This commit enhances regular-expression used to detect and extract ticketId and adds more logging points.