1. 22 Oct, 2019 7 commits
  2. 18 Jul, 2019 1 commit
  3. 28 May, 2019 2 commits
  4. 23 May, 2019 1 commit
    • Arkadiusz Hiler's avatar
      parsemail: Handle malformed headers better · 1c5522df
      Arkadiusz Hiler authored
      Some servers have tendency to send non-RFC compliant headers which
      causes patchwork to hiccup. Their admins are reluctant to act on it and
      we cannot just force whole bunch of users to switch providers.
      Let's do our bit of the robustness principle and be more liberal about
      what we take.
      There are actually two solution in place, one for PY2 and one for PY3.
      PY2 is fine with reading the malformed file, but fails at header
      encoding, so we just need to catch the exception and discard the header.
      PY3 is a bit more complex. Since there were a lot of changes in how
      files and strings are handled, we have to read the mail explicitly as
      binary otherwise we get decode errors, hence the sys.stdin.buffer.
      The changes in the email module and the addition of
      message_from_binary_file() takes care of the issue for us.
      Signed-off-by: default avatarArkadiusz Hiler <arkadiusz.hiler@intel.com>
  5. 10 May, 2019 1 commit
  6. 06 Mar, 2019 1 commit
  7. 05 Mar, 2019 2 commits
  8. 04 Mar, 2019 1 commit
  9. 28 Feb, 2019 4 commits
  10. 13 Feb, 2019 4 commits
  11. 25 Jan, 2019 2 commits
    • Arkadiusz Hiler's avatar
      parsemail: Use new cover letter if provided · 13cfb0cf
      Arkadiusz Hiler authored
      Due to complex handling of incoming series all the new cover letters
      were not used.
      parsemail creates new, transient revision that is later discarded.
      Everything that should get persistent in the proper revision has to be
      copied over explicitly in on_revision_complete signal handler.
      So let's do that for all the cover_letter fields, but only if they are
      Signed-off-by: default avatarArkadiusz Hiler <arkadiusz.hiler@intel.com>
    • Arkadiusz Hiler's avatar
      parsemail: Fix cover letter handling · 67a63377
      Arkadiusz Hiler authored
      If cover letter looked like a patch (i.e. had the diff markers) it was
      parsed as such, resulting in the diff being extracted out from the
      contents and stored as oddly numbered patch 0.
      Let's store the raw payload and do not create patches out of cover
      This is now tested by adding some diff excerpt to one of the test
      fixtures and adjusting the asserts on cover_letter and raw_cover_letter
      Signed-off-by: default avatarArkadiusz Hiler <arkadiusz.hiler@intel.com>
  12. 07 Jan, 2019 5 commits
  13. 04 Jan, 2019 1 commit
  14. 03 Jan, 2019 2 commits
  15. 02 Jan, 2019 2 commits
  16. 17 Dec, 2018 1 commit
  17. 10 Dec, 2018 1 commit
  18. 07 Dec, 2018 2 commits