Fix bug, test variable instead of function
Merge pull request #258 from jbazik/email_sync_bug

Fix bug, test variable instead of function