php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #622 mail() not RFC821/822 compliant (3/4)
Submitted: 1998-08-06 00:49 UTC Modified: 1998-08-13 15:59 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:0 of 1 (0.0%)
From: walton at nordicdms dot com Assigned:
Status: Closed Package: Misbehaving function
PHP Version: 3.0.2a OS: Win32
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: walton at nordicdms dot com
New email:
PHP Version: OS:

 

 [1998-08-06 00:49 UTC] walton at nordicdms dot com
Multiline result codes
----------------------
RFC821 Appendix E:
  The format for multiline replies requires that every line,
  except the last, begin with the reply code, followed
  immediately by a hyphen, "-" (also known as minus), 
  followed by text.  The last line will begin with the reply 
  code, followed immediately by <SP>, optionally some text, 
  and <CRLF>.

  In many cases the sender-SMTP then simply needs to search 
  for the reply code followed by <SP> at the beginning of a 
  line, and ignore all preceding lines.


The current Ack() function in sendmail.c only looks at the
reply code on the first line of a multiline reply, rather
than the reply code that is followed by <SP>.  I don't know
if there is any way this could be a problem, but it can't
hurt to have it documented.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-08-13 15:59 UTC] shane
see #621
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Jun 17 07:00:02 2026 UTC