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 2017/01/12 22:07:35 UTC

[GitHub] incubator-ponymail issue #339: Bug: edit-list.py--mid parameter is not handl...

GitHub user sebbASF opened an issue:

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

    Bug: edit-list.py--mid parameter is not handled correctly

    The --mid parameter is documented in the help message as follows:
    
    "Source Message-ID to edit"
    
    However, when it is used in the query, it is matched against the 'mid' property, rather than 'message-id'. In other words, the help text is incorrect.
    
    Furthermore, since the 'mid' property is analysed, and its values contain break characters, it's not actually possible to retrieve a message by its full mid. 
    
    It is possible to retrieve a message by using a part of the mid, e.g. if mid='abcd@<d.e.f.g>' then one can match on 'abcd'. But this may not be unique; there may be matching messages on multiple mailing lists.
    
    It would be possible to change the code to match against 'message-id', because that is not analyzed. This would agree with the Help message. However, message-ids are not unique - e.g. if a message is sent to multiple lists they will all have the same message-id, and the message-ids may not be unique. So this should not be the only way to select a message.
    
    Another solution is to match against the internal '_id'.
    This is guaranteed to be unique, and is the same as the 'mid'.
    In which case the Help message needs to be adjusted accordingly.
    
    Or perhaps the code should support both message-id and _id as selectors.

----

----


---
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.
---