Re: [PEAR-BUG] Bug #17959 [NEW]: Boundaries ending with non-word characters are ignored

[email protected] (Alan Knowles)
Newsgroups php.pear.qa
Message-ID <[email protected]>
Alex, the bug system is playing up, so I'm can't update a response.

boundary split should split on the boundary string, followed by a line 
break.  - Can you
add a full email example where this problem occurs, either to this bug 
report, or create a new one.

Regards
Alan



On Saturday, October 16, 2010 04:48 AM, alex at innovacomputing dot com 
wrote:
> From:             #08fd1dac5cabf93abc6
> Operating system: Debian Linux
> Package version:  1.5.4
> PHP version:      5.2.9
> Package:          Mail_mimeDecode
> Bug Type:         Bug
> Bug description:  Boundaries ending with non-word characters are ignored
>
> Description:
> ------------
> When using Mail_mimeDecode on an email that uses boundaries
>
> that end with a non-word character, such as '>', such boundaries
>
> are not recognized by the regular expression used in
>
> _boundarySplit().  This is because the non-word character causes
>
> the \b assertion to fail.  As a result, the various parts of the email
>
> body are not properly parsed.
>
> Test script:
> ---------------
> An example boundary line that I've come across in real-world testing that
> causes the assertion to fail is:
>
>
>
> --DC_BOUND_PRE_<1286549542.0000748f8b85>
>
> Expected result:
> ----------------
> All mail parts are recognized.
>
> Actual result:
> --------------
> All but the first part are discarded.
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.