Opened 6 months ago

#34060 new defect

Errors thrown in Gettor if "To:" address field doesn't match gettor@tp.o

Reported by: cohosh Owned by:
Priority: Medium Milestone:
Component: Applications/GetTor Version:
Severity: Normal Keywords:
Cc: traumschule, hiro, gaba, phw, cohosh Actual Points:
Parent ID: Points: 1
Reviewer: Sponsor:


I was checking the logs for errors and found a bunch of the following failures:

2020-04-29 07:57:51+0000 [email parser] Error while parsing email content: [Failure instance: Traceba
ck: <class 'KeyError'>: 'command'
        --- <exception caught here> ---

I noticed this is caused by parse returning an empty request here which only happens if the "To:" address doesn't match exactly. After doing more looking, I found the following mismatched addresses:

  • "To:" address is just blank
  • gettor+[lang code] (e.g., gettor+en@…).
  • [random user]
  • [user]@[random domain].[random tld]

(where random = no known connection to gettor, not cryptographically random :))

For the blank and random addresses, I wonder how this is happening. Perhaps we're relying on information that's not consistently configured correctly on user email clients?

For addresses of the form gettor+[lang code], it looks like gettor used to work by accepting emails of this form to determine localization (see Perhaps we shouldn't be throwing these out, even though we no longer do localization this way. We could use these language codes once we get around to localizing gettor messages as an optional step.

Child Tickets

Change History (0)

Note: See TracTickets for help on using tickets.