You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ponymail.apache.org by sebbASF <gi...@git.apache.org> on 2016/12/09 13:47:50 UTC

[GitHub] incubator-ponymail issue #280: Bug: inconsistent list_raw parsing; <> and ex...

GitHub user sebbASF opened an issue:

    https://github.com/apache/incubator-ponymail/issues/280

    Bug: inconsistent list_raw parsing; <> and extra characters

    pminfo.lua and preferences.lua match list_raw values using REs of the form:
    
    ```
    local list, domain = y.key:match("^<?(.-)%.(.-)>?$")
    ```
    whereas the other modules use REs as in:
    
    ```
    local lid = email.list_raw:match("<[^.]+%.(.-)>")
    local flid = email.list_raw:match("<([^.]+%..-)>")
    ```
    
    There are two differences here: pminfo and  preferences allow the enclosing <> to be missing, but requires that the entire value is matched. The other matches require <> to be present, but allow additional leading and trailing characters.
    
    These cannot both be correct.

----

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-ponymail issue #280: Bug: inconsistent list_raw parsing; <> and ex...

Posted by sebbASF <gi...@git.apache.org>.
Github user sebbASF commented on the issue:

    https://github.com/apache/incubator-ponymail/issues/280
  
    This was fixed as part of #292 and #293


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-ponymail issue #280: Bug: inconsistent list_raw parsing; <> and ex...

Posted by sebbASF <gi...@git.apache.org>.
Github user sebbASF closed the issue at:

    https://github.com/apache/incubator-ponymail/issues/280


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---