1. 18 Jul, 2019 2 commits
  2. 10 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: Arkadiusz Hiler's avatarArkadiusz Hiler <arkadiusz.hiler@intel.com>
      1c5522df
  5. 10 May, 2019 2 commits
  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 6 commits
  11. 28 Jan, 2019 1 commit
  12. 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
      present.
      Signed-off-by: Arkadiusz Hiler's avatarArkadiusz Hiler <arkadiusz.hiler@intel.com>
      13cfb0cf
    • 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
      letters.
      
      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
      accordingly.
      Signed-off-by: Arkadiusz Hiler's avatarArkadiusz Hiler <arkadiusz.hiler@intel.com>
      67a63377
  13. 07 Jan, 2019 6 commits
  14. 04 Jan, 2019 1 commit
  15. 03 Jan, 2019 2 commits
  16. 02 Jan, 2019 2 commits
  17. 17 Dec, 2018 1 commit
  18. 10 Dec, 2018 1 commit
  19. 07 Dec, 2018 2 commits