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

Fix TypeError with null mail_from.host #1592

Merged
merged 1 commit into from Sep 12, 2016
Jump to file or symbol
Failed to load files and symbols.
+1 −1
Diff settings

Always

Just for now

Fix TypeError with null mail_from.host

  • Loading branch information...
soncodi committed Sep 12, 2016
commit 751eaf9a379c0e73178d02bff406b4e364980a93
View
@@ -280,7 +280,7 @@ exports.get_sender_domain = function (txn) {
// a fallback, when header parsing fails
var domain;
try { domain = txn.mail_from.host.toLowerCase(); }
try { domain = txn.mail_from.host && txn.mail_from.host.toLowerCase(); }
catch (e) {
plugin.logerror(e);
}
ProTip! Use n and p to navigate between commits in a pull request.