[PATCH v2 0/5] Patches for dealing with outdated Submitter name

Doug Anderson dianders at chromium.org
Mon Nov 18 17:00:37 EST 2013


These patches deal with a problem that Wolfram Sang reported where
sometimes the real name associated with a patchwork submitter doesn't
match the actual name that was associated with a patch file.

The first version of this series just returned the actual "From:"
field in the mbox, but that was thought to be confusing.  Now we:
- Make sure we show when the Submitter / Sent From are different in the UI.
- Update Submitter names in some cases.
- Still return the actual "From:" in the mbox.

These patches have only been lightly tested and don't include any
official tests, so may need to be spun one more time before becoming
official if they seem broken or need official tests.  I'd appreciate
any comments, though.


Doug Anderson (5):
  Move email address parsing functions to a separate module
  models: Add sent_from() and need_sent_from() methods to Patch model
  templates: Add "Sent From" to the patch template
  models: Don't munge the 'From' field of patches
  parsemail: Update a Person's name upon new email unless they are
    registered

 apps/patchwork/bin/parsemail.py  | 65 +++++----------------------
 apps/patchwork/emailutils.py     | 94 ++++++++++++++++++++++++++++++++++++++++
 apps/patchwork/models.py         | 24 ++++++++++
 apps/patchwork/views/__init__.py |  4 +-
 templates/patchwork/patch.html   |  8 +++-
 5 files changed, 139 insertions(+), 56 deletions(-)
 create mode 100644 apps/patchwork/emailutils.py

-- 
1.8.4.1



More information about the Patchwork mailing list