php-general | 2001072
Date: 07/17/01
- Next message: Miles Thompson: "Re: [PHP] SQL in array() ?"
- Previous message: Jens Wabnitz: "RE: [PHP] edit xml with php?"
- In reply to: Don Read: "RE: [PHP] Re: REGEXP"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> >
> > This is wrong. It should be
> > Content-Type: multipart/mixed;
> > boundary="------------B42DA66C4EC07C9B572A58FC"
> >
> > I don't know why it is not reading the whole string. It seems to treat
> > the *boundary* part as another line.
>
> It _is_ another line; it just happens to starts with whitespace.
> check RFC822.
No doubt.
>
> If you have the whole message in a string (psuedo-code):
Huh.. Then the below should work. But the stupid header breaks :)
>
> list ($h,$msg) =split("\n\n", $mailmsg);
>
> $h=str_replace("\t", " ", $h); // <tab> -> <space>
> $h=str_replace("\n ", " ", $h); // <nl><space> -> <space>
> // i.e. continuation of prior line
>
> $hdrs=split("\n", $h);
>
> ...
>
> Regards,
>
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Miles Thompson: "Re: [PHP] SQL in array() ?"
- Previous message: Jens Wabnitz: "RE: [PHP] edit xml with php?"
- In reply to: Don Read: "RE: [PHP] Re: REGEXP"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

