You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mailet-api@james.apache.org by "Amichai Rothman (JIRA)" <ma...@james.apache.org> on 2009/09/06 13:41:57 UTC

[jira] Updated: (MAILET-28) MailAddress is not RFC 821 compliant

     [ https://issues.apache.org/jira/browse/MAILET-28?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Amichai Rothman updated MAILET-28:
----------------------------------

    Attachment: mailaddress_tests_and_fixes.diff

added a bunch of test cases, and fixed MailAddress to pass all of them

> MailAddress is not RFC 821 compliant
> ------------------------------------
>
>                 Key: MAILET-28
>                 URL: https://issues.apache.org/jira/browse/MAILET-28
>             Project: Mailet
>          Issue Type: Bug
>          Components: Core API
>    Affects Versions: 2.4
>            Reporter: Amichai Rothman
>         Attachments: mailaddress_tests_and_fixes.diff
>
>
> MailAddress address parsing claims to be RFC 821 compliant but fails in various ways. I added a bunch of test cases to the unit tests, and fixed several that failed.
> On a related note, perhaps it's time to move it to RFC 5321 compliance (not entirely cross-compatible with 821, but it obsoletes it and is the current standard, and incompatibilities are generally in obscure syntax constructs which are never used in practice anyway). I was thinking of a complete rewrite, seeing that the current implementation is buggy, over-complex and inefficient (e.g. using lots of StringBuffers which are not needed, having an unnecessary field which is used only during construction, etc.)

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