mailpipe: split initial _parse_message processing into sub-functions.
authorW. Trevor King <wking@tremily.us>
Fri, 31 Aug 2012 18:34:16 +0000 (14:34 -0400)
committerW. Trevor King <wking@tremily.us>
Fri, 31 Aug 2012 18:34:21 +0000 (14:34 -0400)
commitc76cc1a92e0d45605ca7e73e1f6e14156191c0c7
tree322ce5ec006e10e1f14147f2462a1164ac6dc222
parent88cca8f799725462ccd077c94422f3adb1ef761c
mailpipe: split initial _parse_message processing into sub-functions.

New functions:

* _get_message_person_and_subject  (which calls the others internally)
* _get_message_person
* _get_decoded_message
* _get_message_subject

With the previous implementation, all the inline error handling was
making the intended logic of _parse_message difficult to follow.
pygrader/mailpipe.py