{"action":"opened","issue":{"url":"https://api.github.com/repos/robertklep/quotefixformac/issues/53","labels_url":"https://api.github.com/repos/robertklep/quotefixformac/issues/53/labels{/name}","comments_url":"https://api.github.com/repos/robertklep/quotefixformac/issues/53/comments","events_url":"https://api.github.com/repos/robertklep/quotefixformac/issues/53/events","html_url":"https://github.com/robertklep/quotefixformac/issues/53","id":119534588,"number":53,"title":"Cannot use message.from.email in if clause","user":{"login":"tkaufmann","id":871500,"avatar_url":"https://avatars.githubusercontent.com/u/871500?v=3","gravatar_id":"","url":"https://api.github.com/users/tkaufmann","html_url":"https://github.com/tkaufmann","followers_url":"https://api.github.com/users/tkaufmann/followers","following_url":"https://api.github.com/users/tkaufmann/following{/other_user}","gists_url":"https://api.github.com/users/tkaufmann/gists{/gist_id}","starred_url":"https://api.github.com/users/tkaufmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tkaufmann/subscriptions","organizations_url":"https://api.github.com/users/tkaufmann/orgs","repos_url":"https://api.github.com/users/tkaufmann/repos","events_url":"https://api.github.com/users/tkaufmann/events{/privacy}","received_events_url":"https://api.github.com/users/tkaufmann/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-30T16:59:09Z","updated_at":"2015-11-30T16:59:09Z","closed_at":null,"body":"I added a dictionary in my customized attribution (email from: salutation). Now I'm trying to find out if message.from.email is a substring of \"email from\". This doesn't work (\"A templating error occured\"):\r\n\r\n````\r\n{% for key, value in persie.items() %}\r\n    {% if (message.from.email in key) %}\r\nHey Foo!\r\n    {% end %}\r\n{% end %}\r\n````\r\n\r\nI'm quite sure it should, as the following code works (but doesn't help me much):\r\n\r\n````\r\n{% for key, value in persie.items() %}\r\n    {% if (\"foo@bar.local\" in key) %}\r\nHey Foo!\r\n    {% end %}\r\n{% end %}\r\n````\r\n\r\nI'd be very thankful if you could help. I'm on OSX 10.11.1 with QuoteFix 2.7.0."}}