Strange email issue

I seem to be having some problems with a few emails coming into
our RT system. Looks like a simple pattern matching mixup. We’re
running rt 1.0.6 on a system with qmail. Messages are sent to
abuse@ourdomain.com which is hosted by an exchange system, then
forwarded on to our qmail and rt system. It seems From: lines of
the form

confuse something, and RT attempts to reply to
user@foo.com@ourdomain.com. Also, I’m curious why rt is using the From:
line to determine who to reply to rather than the From line (no colon, smtp
envelope from).

I seem to be having some problems with a few emails coming into
our RT system. Looks like a simple pattern matching mixup. We’re
running rt 1.0.6 on a system with qmail. Messages are sent to
abuse@ourdomain.com which is hosted by an exchange system, then
forwarded on to our qmail and rt system. It seems From: lines of
the form

From: “user@foo.comuser@foo.com

confuse something, and RT attempts to reply to
user@foo.com@ourdomain.com. Also, I’m curious why rt is using the From:
line to determine who to reply to rather than the From line (no colon, smtp
envelope from).

A bit more research seems to locate the problem around line 295 in
ui/mail/manipulate.pm. It appears to parse the From: line incorrectly.
Anything with an @ in the “Real Name” portion of the email address is going
to be parsed incorrectly. Without knowing where else this information is
used and for what purpose, I’m hesitant to attempt a fix. Any ideas?

A bit more research seems to locate the problem around line 295 in
ui/mail/manipulate.pm. It appears to parse the From: line incorrectly.
Anything with an @ in the “Real Name” portion of the email address is going
to be parsed incorrectly. Without knowing where else this information is
used and for what purpose, I’m hesitant to attempt a fix. Any ideas?

Aah, so that's what causes that.  I was certain it was user
error (and, in many ways, it is -- but it's a common mistake.)

J.D. Falk “The Internet isn’t just a publishing medium or a
Product Manager medium for commerce, it’s a social medium.”
Mail Abuse Prevention System LLC – Howard Rheingold