Skip to content

hint that buglog['message'] is not necessarily identical to the original message #52

Description

@nmartensen

* "message" => email.message.Message

The code in get_bug_log() uses the header and body components delivered by the bts to feed them into a message parser, but ignores that the body component has been parsed and decoded already by the bts. (The issue is not very visible at the moment due to debian bug 853915, but I've now submitted a merge request to fix that.) In particular for multipart messages (messages with attachments, signed messages, etc.), the message body won't contain what the parser expects after reading the header.

It might be a good idea to document this restriction of the 'message' element.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions