An email was added via project POP3. Click "reply all" on email comment in bug. All entries from to or cc which contains the sending adress are skipped.
Affected file: send_email.aspx
Affected version: 3.6.1
Old code:
if (lines[i].StartsWith("To:") || lines[i].StartsWith("Cc:"))
{
string cc_addr = lines[i].Substring(3, lines[i].Length - 3).Trim();
// don't cc yourself
if (cc_addr.IndexOf(from.SelectedItem.Value) == -1)
{
if (cc_addrs != "")
{
cc_addrs += ",";
}
cc_addrs += cc_addr;
}
}
Possible solution, replacing above:
if (lines[i].StartsWith("To:") || lines[i].StartsWith("Cc:"))
{
string[] cc_addr = lines[i].Substring(3, lines[i].Length - 3).Trim().Split(',');
foreach (string a in cc_addr)
{
// don't cc yourself
if (!a.Contains(from.SelectedItem.Value) && !a.Contains(to.Value))
{
if (cc_addrs != "")
{
cc_addrs += ",";
}
cc_addrs += a.Trim();
}
}
}
See also attached send_email_new.aspx