summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcos <cos>2022-06-29 08:57:18 +0200
committercos <cos>2022-07-22 08:06:01 +0200
commit46e9845f4fa8c9d4dd790b5241b09072dd0e9761 (patch)
treecbdec7d182f81df716d2f4b979cbcebe54395b9c
parentd46e959c42b5cb3cf81e76064db1a157b1213e8d (diff)
downloadcph.rs-46e9845f4fa8c9d4dd790b5241b09072dd0e9761.zip
Encode calendar part as base64
It seems the quoted-printable encoding performed by the emailmessage crate mangles the file and make it impossible to import into calendars.
-rw-r--r--_invitation-mailer/src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/_invitation-mailer/src/main.rs b/_invitation-mailer/src/main.rs
index 6913970..cf1a271 100644
--- a/_invitation-mailer/src/main.rs
+++ b/_invitation-mailer/src/main.rs
@@ -198,7 +198,7 @@ impl HackNight {
.body(String::from(body))
)
.singlepart(
- SinglePart::quoted_printable()
+ SinglePart::base64()
.header(header::ContentType("text/calendar; charset=utf8".parse()?))
.body(format!("{}", ics))
)