Part of lp.bugs.utilities.filebugdataparser View In Hierarchy
Applications like Apport upload such messages, before filing the bug.
Method | __init__ | Undocumented |
Method | readHeaders | Read the next set of headers of the message. |
Method | readLine | Read a line of the message. |
Method | parse | Parse the message and return a FileBugData instance. |
Method | _consumeBytes | Read bytes from the message up to the end_string. |
Method | _setDataFromHeaders | Set the data attributes from the message headers. |
The end_string is included in the output.
If end-of-file is reached, '' is returned.
- The Subject header is the initial bug summary.
- The Tags header specifies the initial bug tags.
- The Private header sets the visibility of the bug.
- The Subscribers header specifies additional initial subscribers
- The first inline part will be added to the description.
- All other inline parts will be added as separate comments.
- All attachment parts will be added as attachment.
When parsing each part of the message is stored in a temporary file on the file system. After using the returned data, removeTemporaryFiles() must be called.