-
-
Notifications
You must be signed in to change notification settings - Fork 196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Escaped characters in email address #3465
Comments
Looks like the followup was sent to the "bad" address https://www.whatdotheyknow.com/request/foster_care_allowances_935#outgoing-573269 |
Hmm, we are storing this properly and we generate a valid header in the form:
From examining the logs, the Exim MTA appears to have hedged its bets and sent to both forms of the address (e.g. Truncated, obfuscated initial mail log line:
|
Not having much luck finding any references to this behaviour online, maybe it's acceptable? Could it be a stray rewriting rule? |
Might be something that @sagepe or someone in |
This is also occurring with an ampersand in the local part of an authority email. @sagepe has investigated and thinks that Alaveteli is submitting the escaped email address as an argument on the command line (exim extracts the unescaped one from the body of the email and sends to both). Looks like the culprit is a combination of the mail gem, which puts the unescaped address on the command line, and action_mailer, which is supplying the Looks like the Rails action_mailer behaviour changes in release 4.2, so this may be resolved by #2968. |
The change in 4.2 would also allow us to remove |
I think (see mikel/mail#70) we might also be able to fix this by switching the delivery_method to |
I think the reason the |
Another instance of this issue at request 721462 on WDTK.
PR raised at mysociety/whatdotheyknow-theme#771 to prevent replies being sent to this email address. Will write to the user now to request they send their reply again. |
Further example at: https://www.whatdotheyknow.com/request/non_represented_nurses_and_midwi#incoming-1729573 Workaround proposed via |
Further example of a public body using an & in an email address and this breaking functionality at: https://www.whatdotheyknow.com/request/planned_works_3#incoming-1758519 |
Logging another example https://www.whatdotheyknow.com/request/ministry_of_justice_it_contracto#outgoing-1190659 |
Another example of this issue: https://www.whatdotheyknow.com/request/number_of_police_officers_at_eur#incoming-1885764 |
Another example of this here: The occurrence of an apostrophe apparently breaking the ability to send a reply on the thread. https://www.whatdotheyknow.com/request/staff_broken_down_by_declared_et#incoming-2005661 |
https://www.whatdotheyknow.com/request/contracted_printing_devices_and_1028#incoming-2062858 This is an example of this issue occurring in slightly different context, attempting to use an apostrophe in a request_address It appears using an apostrophe in the request address resulted in Alaveteli unexpectedly sending mail to an address containing |
Another example of this: https://www.whatdotheyknow.com/request/hague_judgments_convention#incoming-2127578 |
+1 We've had another example of this because the reply address contained an ampersand. |
+1 Another one with an ampersand |
I'm not sure if this is completely related, but we have an issue with failed complete automatic redaction of an email address due to the presence of an apostrophe, where only the part after the apostrophe was automatically removed. https://www.whatdotheyknow.com/request/pay_scales_and_job_titles_in_use#incoming-2260741 |
Adding due to known issue of escaping ampersands: mysociety/alaveteli#3465
+1 Cropped up again today with an O' surname |
+1 an & this time. |
Attempted to replicate this issue using a gmail "+ address" with an &. I was able to receive mail into WDTK and send a followup from WDTK successfully. |
Had another occurrence of this today with an & |
This is desirable, but unlikely to be worked on in the next 12 months so closing for now. |
This https://www.whatdotheyknow.com/request/foster_care_allowances_935#incoming-858469 suggests that Alaveteli escaped email address Firstname.O'[email protected] to Firstname.O\'[email protected]
though it may have been the receiving MTA that did this, also the email did eventually get through
The text was updated successfully, but these errors were encountered: