coddingtonbear / django-mailbox

Import mail from POP3, IMAP, local email mailboxes or directly from Postfix or Exim4 into your Django application automatically.
MIT License
356 stars 164 forks source link

message_received is not firing when receiving emails using getmail. #295

Closed abratchik closed 2 months ago

abratchik commented 2 months ago

Seems like this issue have been reported before (#233 ) but it occurs to me and am not sure how to solve it.

I have my mailbox updated by the 'manage getmail' command, which is triggered every minute by the cron. When I refresh the list of messages I see new ones appearing so all is good. However, no signals are fired for the new messages until I manually re-send it through the admin view.

here is my cron config in the settings.py:

CRONJOBS = [
    ('* * * * *', 'django.core.management.call_command', ['getmail'])
]

I tried to swap the apps around as advised in the #233 but it had no effect.