On 10/23/2013 07:12 PM, Ronald F. Guilmette wrote:
In message <52684f18.2000...@stemsystems.com>, you wrote:


I _do_ know more than a little about mail servers, and while you are
basically correct, i.e. that Postfix would certainly view anything
past the first \n\n encountered as being *message* data (not headers),
in the two messages in question, there was *nothing* in the way of body
text, other than a single "<" character.

i think a blank line with . will end input to smtp servers. try that too in the line after the from field.

===============================

there may be another cause but it can't be a here doc as the data has no
access to your code. something in the data caused the rest of the
headers not to be processed by the mailer.

I believe that you may be on to something here, but it is more than just
Postfix seeing a \n\n and believeing that it had encountered the end of the
headers.  It is possible that something in the input stream I gave it
signaled to it the end of *all* input (not just headers) but that is
still perplexing.  What character or character sequence would do that?
I will have to dig into the Postfix docs and research that question.
I cannot imagine that it would stop reading stdin on anything other than
an actual EOF.


Well, I added to the script some rudimentary filtering/validation of
the input strings in question also.

you need more than rudimentary filtering. make sure the from field is one string, no newlines or anything but printable text.

uri



--
Uri Guttman - The Perl Hunter
The Best Perl Jobs, The Best Perl Hackers
http://PerlHunter.com

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to