1. 08 Mar, 2021 2 commits
  2. 25 Jan, 2021 1 commit
  3. 23 Jan, 2021 1 commit
  4. 12 Jan, 2021 1 commit
  5. 12 Jun, 2020 1 commit
  6. 05 Jun, 2020 1 commit
  7. 29 May, 2020 2 commits
    • Philipp Winter's avatar
      Don't assume that request has "command" key. · b3de2e35
      Philipp Winter authored
      If GetTor deals with an autoresponder, it returns an empty request,
      which is then passed to parse_callback, which raises a KeyError because
      of request["command"]:
      2020-05-29 19:04:43+0000 [email parser] Error while parsing email content: [Failure instance: Traceback: <class 'KeyError'>: 'command'
      	--- <exception caught here> ---
      This is a fixup of: <https://bugs.torproject.org/34286>
    • Cecylia Bocovich's avatar
      Check to see if email is from an autoresponder · 012ef1a4
      Cecylia Bocovich authored
      This checks to see if an incoming request is from a known autoresponder.
      GetTor can get into infinite loops with itself or postmaster addresses
      (Bug #34286)
  8. 22 May, 2020 1 commit
    • Cecylia Bocovich's avatar
      Ignore emails from Mail Delivery System · b78bc3ff
      Cecylia Bocovich authored
      This ignores emails with the username "MAILER-DAEMON", a common email
      for mail delivery systems. The goal of this is to avoid getting into a
      loop with mail delivery system autoresponders after a bounced email.
  9. 04 May, 2020 2 commits
  10. 29 Apr, 2020 2 commits
    • Cecylia Bocovich's avatar
      Delete service instance during shutdown · 21645db1
      Cecylia Bocovich authored
      Before we were calling a non-existent shutdown function. These instances
      already have __del__ functions so we can just call those instead.
    • Cecylia Bocovich's avatar
      Refactor to dry out sendmail · 390120a0
      Cecylia Bocovich authored
      Instead of processing link and help requests separately, we can process
      them together and use the command to determine the different subject and
      body messages.
      Removed unused code and simplified database command.
  11. 27 Apr, 2020 1 commit
  12. 13 Apr, 2020 6 commits
  13. 18 Mar, 2020 4 commits
  14. 12 Mar, 2020 3 commits
    • Cecylia Bocovich's avatar
      Make locale parsing less eager · 829fa9fb
      Cecylia Bocovich authored
      This will make the locale parsing more restrictive so that, for example,
      sending "i like fries" will not result in the locale "fr".
    • Cecylia Bocovich's avatar
      Add more test cases for different email styles · c8e385ba
      Cecylia Bocovich authored
      teor mentioned in ticket #23225 that some clients will top-post replies
      without quoting the the text. This commit adds a test case for that.
      Since the command detector is greedy, gettor parses the reply first.
      Also added a test for bottom-posting.
    • Cecylia Bocovich's avatar
      Ensure replies to the help message will work · 0cd6443c
      Cecylia Bocovich authored
      This commit makes some changes and adds some tests to ensure that
      valid replies to the gettor help message will contain links.
      Non-valid replies should still return the GetTor help message.
  15. 11 Mar, 2020 1 commit
  16. 06 Mar, 2020 1 commit
    • Cecylia Bocovich's avatar
      Always reply to gettor emails · 61afa2c5
      Cecylia Bocovich authored
      This fixes a bug where improperly formatted emails were not receiving
      gettor replies. We should always reply to emails and default to sending
      a help message if the request was invalid.
      This also prioritizes sending links if both a valid links request and
      the word help were sent. Several tests were added.
  17. 19 Feb, 2020 4 commits
  18. 13 Feb, 2020 1 commit
  19. 08 Feb, 2020 3 commits
  20. 31 Jan, 2020 2 commits