Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get_new_mail from mailboxes inbox: where in mailbox are the loaded messages located? #239

Closed
mondomeme opened this issue Oct 27, 2020 · 5 comments

Comments

@mondomeme
Copy link

Hello,

I'm trying to develop a mail management system using Django and django mailbox.
I have a set of same domain mailboxes, for example : [email protected], [email protected]. The mailboxes have all the same configuration: imap, tls, host server.

When I load new messages with the get_new_mail function, the messages are correctly loaded, but when I'm trying to access to a mailbox I see no message.

After searching for several hours, I see for a mailbox the loaded messages are marked as 'deleted', instead for another one all messages disappeared.

I don't understand the two different behaviors.

@ad-m
Copy link
Collaborator

ad-m commented Oct 27, 2020

The Django-mailbox retrieves the e-mail messages by eg. IMAP, POP and then erases them to not download again the next time. Django-mailbox is not a typical mail program, and is a development library that makes it easy to process email messages in Django. A mailbox in that case plays the role of a message queue that needs to be processed. Messages processed from the queue are removed from the queue.

https://django-mailbox.readthedocs.io/en/latest/

@mondomeme
Copy link
Author

@ad-m thank you for reply. I understand the messages are erased, but I don't understand for two different mailbox with same configuration the message are definitevely erased or marked and stored as 'Deleted'.

@ad-m
Copy link
Collaborator

ad-m commented Oct 28, 2020

Ask your mailbox provider. Different mailbox providers handle delete on different way.

@mondomeme
Copy link
Author

I figured out why the mailbox messages haven't been deleted: the mailbox has so much messages in inbox and running of get_new_mail crashed. In fact I see duplicated records in django_mailbox_message table. The other mailbox has much less messages.

The problem now is the same of #212 issue.

@ad-m
Copy link
Collaborator

ad-m commented Oct 28, 2020

Closed as duplicate.

@ad-m ad-m closed this as completed Oct 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants