Skip to content

Commit

Permalink
Don't check SPF when from has no domain
Browse files Browse the repository at this point in the history
  • Loading branch information
andrenth committed Sep 17, 2012
1 parent 9135fc4 commit 81e435e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/milter_callbacks.ml
Expand Up @@ -152,7 +152,7 @@ let spf_check ctx priv from =
match milter_res with
| Milter.Continue ->
let spf_res, milter_res =
if from <> "" then spf_check_from ctx priv from
if String.contains from '@' then spf_check_from ctx priv from
else spf_res, milter_res in
Some spf_res, milter_res
| other ->
Expand Down

0 comments on commit 81e435e

Please sign in to comment.