Page MenuHomePhabricator

Fix verbose email addresses being passed to mail adapters
ClosedPublic

Authored by epriestley on Aug 12 2014, 11:54 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Apr 27, 11:08 AM
Unknown Object (File)
Mon, Apr 22, 10:31 PM
Unknown Object (File)
Wed, Apr 17, 8:13 PM
Unknown Object (File)
Thu, Apr 11, 6:56 AM
Unknown Object (File)
Tue, Apr 2, 2:06 PM
Unknown Object (File)
Mar 28 2024, 10:52 PM
Unknown Object (File)
Mar 26 2024, 10:18 AM
Unknown Object (File)
Feb 2 2024, 2:58 PM
Subscribers

Details

Summary

Fixes T5233.

  • The mail adapter API currently expects plain addresses (like a@b.com) in addTos(), and some adapters can not accept fancy verbose addresses (like "name" <a@b.com>).
  • When we try to send error email, we pass the entire "From" header into the API. This is incorrect.
  • Since it would be nice to make this just work in the future, fix it inside the API.
  • Specifically, this is reached with: send email -> generates error -> we try to send you an email back -> we send it to your "From" -> some mailers choke on the fancy name if you have one.
Test Plan

Processed an errorneous email with a fancy "From", got a response error.

Diff Detail

Repository
rP Phabricator
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

epriestley retitled this revision from to Fix verbose email addresses being passed to mail adapters.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: btrahan.
btrahan edited edge metadata.

nice one!

This revision is now accepted and ready to land.Aug 12 2014, 7:10 PM
epriestley updated this revision to Diff 24637.

Closed by commit rPe4049e879764 (authored by @epriestley).