Assigned: (JAMES-662) sendmail.py doesn't handle multipleTO-recipients
0 answers - 1199 bytes -

[ ]
Noel J. Bergman reassigned JAMES-662:
Assignee: Noel J. Bergman
sendmail.py doesn't handle multiple T
Key: JAMES-662
URL:
Project: James
Issue Type: Bug
Affects Versions: 2.3.0rc5
Environment: Debial Linux, Python 2.3.5, "Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-b64)"
Reporter: Stephan Sann
Assigned To: Noel J. Bergman
Priority: Critical
Fix For: Trunk
Attachments: sendmail.py.works4me
--
I got a problem with the sendmail.py-script from the /bin-directory:
Wenn I try to send a mail to two T from a PHP-Script, only
the first one will be delivered :-(
<?PHP mail("stephan (AT) one (DOT) de,stephan (AT) two (DOT) de", "hallo", "moep", "From: stephan (AT) three (DOT) de", "-fstephan (AT) three (DOT) de"); ?>
(yes, sendmail-option "-t" is set: phpinfo() -"sendmail_path: /usr/sbin/sendmail -t")
I'm no Python-guy, but this doesn't look like there's a extraction of multiple (comma-seperated) recipients:
[]
if header.startswith("To:"):
if extract:
to = header[3:]
to_addrs.append(to[("<" + to).rfind("<"):(to + ">").find(">")])
[]