You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by "Robert Burrell Donkin (JIRA)" <se...@james.apache.org> on 2008/02/04 22:37:09 UTC

[jira] Issue Comment Edited: (MIME4J-34) o.a.j.m.message.Header#writeTo violates RFC 822

    [ https://issues.apache.org/jira/browse/MIME4J-34?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12565541#action_12565541 ] 

robertburrelldonkin edited comment on MIME4J-34 at 2/4/08 1:36 PM:
---------------------------------------------------------------------

"If you like I can implement two modes for Header#writeTo and Multipart#writeTo methods: strict (ASCII) and lenient (content charset). We'll need this feature in HttpClient anyways."

This sounds good to me. Probably 4 modes would be good (but i can patch any you miss):

standard-strict should be ASCII+ERROR (when a string contains non-ASCII characters, the operation fails)

standard-lenient would be ASCII+REPLACE (or IGNORE?)

international-strict would content+ERROR

international-lenient would content+REPLACE (or IGNORE?)

AIUI current default is international-lenient

Robert

      was (Author: robertburrelldonkin):
    "If you like I can implement two modes for Header#writeTo and Multipart#writeTo methods: strict (ASCII) and lenient (content charset). We'll need this feature in HttpClient anyways."

This sounds good to 

Robert
  
> o.a.j.m.message.Header#writeTo violates RFC 822
> -----------------------------------------------
>
>                 Key: MIME4J-34
>                 URL: https://issues.apache.org/jira/browse/MIME4J-34
>             Project: Mime4j
>          Issue Type: Bug
>    Affects Versions: 0.3
>            Reporter: Oleg Kalnichevski
>         Attachments: mimeheader.patch, mimeheader.patch
>
>
> The Header#writeTo method uses the content charset instead of US-ASCII required by the RFC 822. Same problem exists in the Multipart#writeTo. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Re: [jira] Issue Comment Edited: (MIME4J-34) o.a.j.m.message.Header#writeTo violates RFC 822

Posted by Robert Burrell Donkin <ro...@gmail.com>.
please take a look at https://issues.apache.org/jira/browse/MIME4J-34.
i think that a multimode patch would be suitable but it would be great
if people familiar with practical email internationalisation could
comment and check that i haven't missed anything important.

- robert

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org