Sha256: 3ff8425f0a8508ddf988fb51ed72b61f5b008d9719ca61af134db2f992fca087

Contents?: true

Size: 1.68 KB

Versions: 2

Compression:

Stored size: 1.68 KB

Contents

From: Fake Sender <fake_sender@example.invalid>
To: Fake Receiver <fake_receiver@localhost>
Date: Sun, 21 Jun 2020 06:25:49 -0000
Subject: Attachments with charset
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============2385509127900810307=="

--===============2385509127900810307==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit

This is the body.

--===============2385509127900810307==
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
MIME-Version: 1.0
Content-Disposition: attachment; filename="ascii.txt"

This is ASCII

--===============2385509127900810307==
Content-Type: text/plain; charset="koi8-r"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Content-Disposition: attachment; filename="cyrillic.txt"

=F0=D2=C9=D7=C5=D4

--===============2385509127900810307==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
Content-Disposition: attachment; filename="emoji.txt"

8J+Yggo=

--===============2385509127900810307==
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment; filename="bad.txt"
MIME-Version: 1.0

Embedded=F0garbage

--===============2385509127900810307==
Content-Type: text/plain; charset="invalid-test"; name="invalid-charset.txt"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment; filename="invalid-charset.txt"

Example invalid charset
--===============2385509127900810307==
Content-Type: text/plain; charset="utf-7"
Content-Transfer-Encoding: 7bit
MIME-Version: 1.0
Content-Disposition: attachment; filename="ascii.txt"

This is +Jyg-UTF-7+Jyg-
--===============2385509127900810307==

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sup-1.2 test/fixtures/text-attachments-with-charset.eml
sup-1.1 test/fixtures/text-attachments-with-charset.eml