You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When headers['From'] = 'Adam, Valérie <valerie.adam@xxx.be>' , the produced from_ attribute contains [('', 'Adam'), ('Valérie', 'valerie.adam@xxx.be')]
This is a mail sent by office365
To Reproduce
Steps to reproduce the behavior:
import mailparser
mail = mailparser.parse_from_file(f)
print(mail.from_)
See error
Expected behavior
from_ value must be [('Adam, Valérie', 'valerie.adam@xxx.be')]
Raw mail 'Subject: test\nFrom: Adam, Valérie <adam.valerie@xxx.be>\nTo: yyy@xxx.be\nContent-Type: text/plain; charset="utf-8"\nContent-Transfer-Encoding: 7bit\nMIME-Version: 1.0\n\nmore\n'
Environment:
OS: Linux
Docker: no
mail-parser version: 3.15.0
Additional context
nothing else
The text was updated successfully, but these errors were encountered:
sgeulette
changed the title
from_ attribute contains to tuples for one sender
from_ attribute contains two tuples for one sender
Feb 17, 2022
Describe the bug
When headers['From'] = 'Adam, Valérie <valerie.adam@xxx.be>' , the produced from_ attribute contains [('', 'Adam'), ('Valérie', 'valerie.adam@xxx.be')]
This is a mail sent by office365
To Reproduce
Steps to reproduce the behavior:
import mailparser
mail = mailparser.parse_from_file(f)
Expected behavior
from_ value must be [('Adam, Valérie', 'valerie.adam@xxx.be')]
Raw mail
'Subject: test\nFrom: Adam, Valérie <adam.valerie@xxx.be>\nTo: yyy@xxx.be\nContent-Type: text/plain; charset="utf-8"\nContent-Transfer-Encoding: 7bit\nMIME-Version: 1.0\n\nmore\n'
Environment:
Additional context
nothing else
The text was updated successfully, but these errors were encountered: