Uploaded image for project: 'James Server'
  1. James Server
  2. JAMES-662

sendmail.py doesn't handle multiple TO-recipients

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 2.3.0
    • 2.3.1
    • None
    • None
    • Debial Linux, Python 2.3.5, "Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-b64)"

    Description

      I got a problem with the sendmail.py-script from the /bin-directory:

      Wenn I try to send a mail to two TO-recipients from a PHP-Script, only
      the first one will be delivered

      <?PHP mail("stephan@one.de,stephan@two.de", "hallo", "moep", "From: stephan@three.de", "-fstephan@three.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(">")])
      [...]

      Attachments

        1. sendmail.py.works4me
          4 kB
          Stephan Sann

        Activity

          People

            norman Norman Maurer
            lotk Stephan Sann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: