bump mail_parser 0.5.0 -> 0.8.2 #5

Merged
quentin merged 6 commits from bump_mail_parser into main 2023-03-09 15:53:05 +00:00
Owner

BLOCKING:

  • B1 - PartType::Message::raw_message returns the parent message instead of the inner one

B1

aerogramme:

body (("text" "plain" ("charset" "us-ascii") nil nil "7bit" 7 0)("message" "rfc822" nil nil nil "7bit" 379 (nil "welcome to aerogramme!!" (("garage team" nil "garagehq" "deuxfleurs.fr")) (("garage team" nil "garagehq" "deuxfleurs.fr")) (("garage team" nil "garagehq" "deuxfleurs.fr")) nil nil nil nil nil) ("text" "plain" ("charset" "us-ascii") nil nil "7bit" 49 1) 17) "mixed")

dovecot:

body (("text" "plain" ("charset" "us-ascii") nil nil "7bit" 7 0)("message" "rfc822" nil nil nil "7bit" 129 (nil "welcome to aerogramme!!" (("garage team" nil "garagehq" "deuxfleurs.fr")) (("garage team" nil "garagehq" "deuxfleurs.fr")) (("garage team" nil "garagehq" "deuxfleurs.fr")) nil nil nil nil nil) ("text" "plain" ("charset" "us-ascii") nil nil "7bit" 49 1) 4) "mixed")

message:

From: Garage team <garagehq@deuxfleurs.fr>
Content-Type: multipart/mixed; boundary="delim";
Subject: Welcome to Aerogramme!!

--delim
Content-Type: text/plain; charset="us-ascii"

Hello 1
--delim
Content-Type: message/rfc822

From: Garage team <garagehq@deuxfleurs.fr>
Subject: Welcome to Aerogramme!!

This is just a test email, feel free to ignore.

--delim--

Let's convince us that this message is perfectly valid by using Python's standard library:

>>> import email
>>> a = open("0004_msg-in-msg.eml", "r")
>>> b = email.message_from_file(a)
>>> b.defects
[]
>>> [p.get_content_type() for p in b.walk()]
['multipart/mixed', 'text/plain', 'message/rfc822', 'text/plain']
**BLOCKING**: - B1 - `PartType::Message::raw_message` returns the parent message instead of the inner one ## B1 aerogramme: ``` body (("text" "plain" ("charset" "us-ascii") nil nil "7bit" 7 0)("message" "rfc822" nil nil nil "7bit" 379 (nil "welcome to aerogramme!!" (("garage team" nil "garagehq" "deuxfleurs.fr")) (("garage team" nil "garagehq" "deuxfleurs.fr")) (("garage team" nil "garagehq" "deuxfleurs.fr")) nil nil nil nil nil) ("text" "plain" ("charset" "us-ascii") nil nil "7bit" 49 1) 17) "mixed") ``` dovecot: ``` body (("text" "plain" ("charset" "us-ascii") nil nil "7bit" 7 0)("message" "rfc822" nil nil nil "7bit" 129 (nil "welcome to aerogramme!!" (("garage team" nil "garagehq" "deuxfleurs.fr")) (("garage team" nil "garagehq" "deuxfleurs.fr")) (("garage team" nil "garagehq" "deuxfleurs.fr")) nil nil nil nil nil) ("text" "plain" ("charset" "us-ascii") nil nil "7bit" 49 1) 4) "mixed") ``` message: ``` From: Garage team <garagehq@deuxfleurs.fr> Content-Type: multipart/mixed; boundary="delim"; Subject: Welcome to Aerogramme!! --delim Content-Type: text/plain; charset="us-ascii" Hello 1 --delim Content-Type: message/rfc822 From: Garage team <garagehq@deuxfleurs.fr> Subject: Welcome to Aerogramme!! This is just a test email, feel free to ignore. --delim-- ``` Let's convince us that this message is perfectly valid by using Python's standard library: ``` >>> import email >>> a = open("0004_msg-in-msg.eml", "r") >>> b = email.message_from_file(a) >>> b.defects [] >>> [p.get_content_type() for p in b.walk()] ['multipart/mixed', 'text/plain', 'message/rfc822', 'text/plain'] ```
quentin added 1 commit 2023-02-07 10:28:11 +00:00
quentin added 1 commit 2023-02-07 11:23:00 +00:00
quentin added 1 commit 2023-02-07 13:40:39 +00:00
quentin added 1 commit 2023-02-07 15:12:54 +00:00
quentin added 1 commit 2023-03-09 09:23:43 +00:00
quentin added 1 commit 2023-03-09 10:31:00 +00:00
quentin changed title from WIP: bump mail_parser to bump mail_parser 0.5.0 -> 0.8.2 2023-03-09 10:31:53 +00:00
Author
Owner

B1 is solved. But parsing is still mainly broken. However, this is another project. I think this PR is ready to merge in its current form.

B1 is solved. But parsing is still mainly broken. However, this is another project. I think this PR is ready to merge in its current form.
quentin merged commit 736dd54b50 into main 2023-03-09 15:53:05 +00:00
quentin deleted branch bump_mail_parser 2023-03-09 15:53:05 +00:00
Sign in to join this conversation.
No description provided.