Closed joshuakoh1 closed 4 years ago
Are you running getmail
command?
The mail was being added to the DB but the signal wasn't firing.
Funny story. Spent many hours breaking stuff trying to make it work. Went for a walk and had a crazy idea.
Under installed apps, I had myapp under django_mailbox. Switched it around myapp first and django_mailbox below and it's working now. Signals frustrate me so much.
I have a similar problem - message_received is not firing when I'm receiving emails using getmail. I trigger 'manage getmail' using cron job every minute. Emails are appearing in the admin view but no signals are fired. Swapping applications around in the installed apps did not help.
/base/myapp/init.py
/base/myapp/apps.py
/base/myapp/signals.py
/base/settings.py