When sending mail to multiple recipients, the X-Recipient header repeats, one for each recipient. For instance, when looking at View Source in FogBugz, I see this:
X-Sender: "Foo" <foo@sample.com>
X-Receiver: "Bar" <bar@sample.com>, "Baz" <baz@sample.com>, "Qux" <qux@sample.com>
X-Receiver: "Bar" <bar@sample.com>, "Baz" <baz@sample.com>, "Qux" <qux@sample.com>
X-Receiver: "Bar" <bar@sample.com>, "Baz" <baz@sample.com>, "Qux" <qux@sample.com>
Date: Tue, 17 Aug 2010 17:32:34 -07:00
From: "Foo" <foo@sample.com>
To: "Bar" <bar@sample.com>, "Baz" <baz@sample.com>, "Qux" <qux@sample.com>
Looking at the raw source at the receiving end, I see this (note the missing comma between Qux and Bar--there are two spaces instead):
X-Receiver: "Bar" <bar@sample.com>, "Baz" <baz@sample.com>, "Qux" <qux@sample.com> "Bar" <bar@sample.com>, "Baz" <baz@sample.com>, "Qux" <qux@sample.com> "Bar" <bar@sample.com>, "Baz" <baz@sample.com>, "Qux" <qux@sample.com>
The repeating lines are grouped by recipient field: To and CC repeat their multiple lines separately (e.g. if I have 2 recipients in the To field, and 3 in the CC field, I get 2 lines each with the 2 To addressees, and 3 lines each with the 3 CC addressees, rather than 5 lines with 5 addressees each). This translates into a bunch of extra X-Recipients, which seems to be causing problems with our associated mail server, and doesn't seem like desired behavior in any case.
The specific incident that triggered my investigation was an email that failed to be sent to clients. There were 9 recipients CC'ed on the message, which resulted in 82 X-Receivers instead of 10.
It is occurring on FogBugz Version 7.3.3 (DB 745, Build 2047) on Windows.