-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
117 additions
and
5 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ mod parsing_tester { | |
fn test_parse_body_multipart() { | ||
let body = std::fs::read_to_string("test/samples/discord_mail.body").unwrap(); | ||
let subject = get_subject(&body); | ||
println!("subject: {:?}", subject); | ||
let mail = Mail { | ||
from: Default::default(), | ||
to: Default::default(), | ||
|
@@ -20,7 +21,8 @@ mod parsing_tester { | |
let (from, _) = get_data_from_to(&mail.data); | ||
assert!(from.contains("[email protected]")); | ||
|
||
assert_eq!(mail.subject.unwrap(), "Verify Email Address for Discord"); | ||
//should've decoded the subject with rfc2047 decoder | ||
assert_eq!(mail.subject.unwrap(), "Vérifie ton adresse e-mail Discord"); | ||
} | ||
|
||
#[test] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ Date: Fri, 27 Sep 2024 21:02:51 +0000 (UTC) | |
From: Discord <[email protected]> | ||
Mime-Version: 1.0 | ||
Message-ID: <U5GSwRpZSPWUCqqfA4y23g@geopod-ismtpd-2> | ||
Subject: Verify Email Address for Discord | ||
Subject: =?UTF-8?B?VsOpcmlmaWU=?= ton adresse e-mail Discord | ||
X-SG-EID: | ||
=?us-ascii?Q?u001=2Encph=2Fx3Jw0NdHDwq6twCdiOEjRqduaW+3S=2FWXBRXzv62NXoGt1LlW8ZOp?= | ||
=?us-ascii?Q?GajFHOcRQzla331F6ukAeYmLWbVWcEmwbstknFb?= | ||
|