On Tuesday 23 January 2007 16:04, Alexandru Stanoi wrote:
> Frederik Holljen wrote:
> >> -                $cd .= "; filename=\"{$cdHeader->fileName}\"";
> >> +                $fileInfo = null;
> >> +                if ( $cdHeader->fileNameCharSet !== null )
> >> +                {
> >> +                    $fileInfo .= "*0*=\"{$cdHeader->fileNameCharSet}";
> >
> > Is this correct? I think we should implement this properly while we're at
> > it and break properly (with \r\n) when we overflow the maximum line
> > length.
>
> We already have the method ezcMailHeaderFolder::foldAny() which I can
> use for this. Is it correct?

Unfortunately not. That class simply folds on the max line length for SMTP 
(998 characters.) The content-disposition field is different however because 
the white space is significant. Hence the system with the *0="" 1=etc.

This is specified in RFC 2231 and I think we need specific classes for these 
two headers (based on one class implementing these folding rules).

Currently the parsing part lives in rfc2231_implementation.php

Frederik
-- 
svn-components mailing list
svn-components@lists.ez.no
http://lists.ez.no/mailman/listinfo/svn-components

Reply via email to