{"action":"created","issue":{"url":"https://api.github.com/repos/coddingtonbear/django-mailbox/issues/110","repository_url":"https://api.github.com/repos/coddingtonbear/django-mailbox","labels_url":"https://api.github.com/repos/coddingtonbear/django-mailbox/issues/110/labels{/name}","comments_url":"https://api.github.com/repos/coddingtonbear/django-mailbox/issues/110/comments","events_url":"https://api.github.com/repos/coddingtonbear/django-mailbox/issues/110/events","html_url":"https://github.com/coddingtonbear/django-mailbox/issues/110","id":171128863,"number":110,"title":"Trigger Event when receiving new email","user":{"login":"lonewolf911","id":7744571,"avatar_url":"https://avatars.githubusercontent.com/u/7744571?v=3","gravatar_id":"","url":"https://api.github.com/users/lonewolf911","html_url":"https://github.com/lonewolf911","followers_url":"https://api.github.com/users/lonewolf911/followers","following_url":"https://api.github.com/users/lonewolf911/following{/other_user}","gists_url":"https://api.github.com/users/lonewolf911/gists{/gist_id}","starred_url":"https://api.github.com/users/lonewolf911/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lonewolf911/subscriptions","organizations_url":"https://api.github.com/users/lonewolf911/orgs","repos_url":"https://api.github.com/users/lonewolf911/repos","events_url":"https://api.github.com/users/lonewolf911/events{/privacy}","received_events_url":"https://api.github.com/users/lonewolf911/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-08-15T08:30:40Z","updated_at":"2016-08-15T20:30:13Z","closed_at":null,"body":"@coddingtonbear \r\n@ad-m \r\n\r\nI try to using signal to trigger an event whenever receiving new email in my mailbox but I do not know exactly how to. I did like some example i found out on Internet. \r\n\r\nThe handler did not run when I have new email, it just run after I call `get_new_mail()`. Please tell me what I'm doing wrong here.\r\n\r\n*products/signals/handlers.py*\r\n```\r\nfrom django_mailbox.signals import message_received\r\nfrom django.dispatch import receiver\r\n\r\n\r\n@receiver(message_received)\r\ndef mail_update(sender, message, **kwargs):\r\n    print(message)\r\n```\r\n\r\n*products/apps.py*\r\n```\r\nfrom django.apps import AppConfig\r\n\r\n\r\nclass MailConfig(AppConfig):\r\n    name = 'products'\r\n\r\n    def ready(self):\r\n        import products.signals.handlers\r\n```\r\n\r\n*products/__init__.py*\r\n```\r\ndefault_app_config = 'products.apps.MailConfig'\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/coddingtonbear/django-mailbox/issues/comments/239919294","html_url":"https://github.com/coddingtonbear/django-mailbox/issues/110#issuecomment-239919294","issue_url":"https://api.github.com/repos/coddingtonbear/django-mailbox/issues/110","id":239919294,"user":{"login":"ad-m","id":3618479,"avatar_url":"https://avatars.githubusercontent.com/u/3618479?v=3","gravatar_id":"","url":"https://api.github.com/users/ad-m","html_url":"https://github.com/ad-m","followers_url":"https://api.github.com/users/ad-m/followers","following_url":"https://api.github.com/users/ad-m/following{/other_user}","gists_url":"https://api.github.com/users/ad-m/gists{/gist_id}","starred_url":"https://api.github.com/users/ad-m/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ad-m/subscriptions","organizations_url":"https://api.github.com/users/ad-m/orgs","repos_url":"https://api.github.com/users/ad-m/repos","events_url":"https://api.github.com/users/ad-m/events{/privacy}","received_events_url":"https://api.github.com/users/ad-m/received_events","type":"User","site_admin":false},"created_at":"2016-08-15T20:30:13Z","updated_at":"2016-08-15T20:30:13Z","body":"@coddingtonbear , do you can close this issue? "}}
{"actor":{"display_login":"ad-m"}}