Skip to content

Conversation

MattiLehtinen
Copy link

Fixes IMAP to work with Office365 (outlook.office365.com) when using DJANGO_MAILBOX_MAX_MESSAGE_SIZE option.

To reproduce:

  • Create office365 mailbox
  • Use it with django-mailbox using IMAP
  • Set DJANGO_MAILBOX_MAX_MESSAGE_SIZE
  • Expected: mails are fetched
  • Actual: no mails are fetched

This is because when using Office365 IMAP, the server returns
['1 (RFC822.SIZE 45274 UID 84)']
instead of expected
['1 (UID 218 RFC822.SIZE 4680)']

@pfouque
Copy link
Collaborator

pfouque commented Dec 27, 2023

@Pietro395 as you are using office 365, please could you check if this is still the case or not?
It looks like a non standard implementation that may have been fixed on their side since...

@Pietro395
Copy link
Collaborator

@Pietro395 as you are using office 365, please could you check if this is still the case or not? It looks like a non standard implementation that may have been fixed on their side since...

On the tenants to which I have access I have never been able to access via IMAP, for this reason I have implemented access to the folder via API, I don't think I will be able to try this case unfortunately

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

Successfully merging this pull request may close these issues.

3 participants