MAIF / melusine

📧 Melusine: Use python to automatize your email processing workflow

Home Page:https://maif.github.io/melusine

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

text_body error with our server version

Maxime-POULAIN-Verlingue opened this issue · comments

Hey !

We had an issue when we tried to get the mails from the mailbox server using get_emails. It seems it's once again due to the version of our mailbox server.

Capture_error_get_emails

It seems that the text_body atribute is not available for the older version of Exchange. To fix that, we made two changes in melusine/connectors/exchange.py :

image

Mailbox Server : Microsoft Exchange Server 2010

Python version : 3.8.12

Melusine version : 2.3.1

Operating System : Windows

Hi Maxime, thank you for highlighting this issue of compatibility.
If you would like to see this integrated, would you be willing to submit a pull request?

The code in screenshot would need some adjustment to be retrocompatible with different versions of Exchange so "body" value should be parametrable.

For example,
if text_body lead to error or is missing:
try body

or check Exchange version (if possible) and get the correct value in consequences

Looking forward to your PR.
Best regards

Hi !

Sorry for the late reply.
Our company has upgraded the version of Exchange that we used.
We don't have this error with the new version, so I haven't developed a PR.

Best regards