Function | send_process_error_notification | Send a mail about an error occurring while using the email interface. |
Function | get_unified_diff | Return a unified diff of the two texts. |
Send a mail about an error occurring while using the email interface.
Tells the user that an error was encountered while processing their request and attaches the original email which caused the error to happen. The original message will be truncated to max_return_size bytes.
Unknown Field: to_address | The address to send the notification to. | |
Unknown Field: subject | The subject of the notification. | |
Unknown Field: error_msg | The error message that explains the error. | |
Unknown Field: original_msg | The original message sent by the user. | |
Unknown Field: failing_command | The command that caused the error to happen. | |
Unknown Field: max_return_size | The maximum size returned for the original message. |
Return a unified diff of the two texts.
Before the diff is produced, the texts are wrapped to the given text width.
>>> print get_unified_diff( ... 'Some text\nAnother line\n',get_un ... 'Some more text\nAnother line\n', ... text_width=72) - Some text + Some more text Another line