sup

A curses threads-with-tags style email client

sup.git

git clone https://supmua.dev/git/sup/

test/fixtures/text-attachments-with-charset.eml (1717B) - raw

      1 From: Fake Sender <fake_sender@example.invalid>
      2 To: Fake Receiver <fake_receiver@localhost>
      3 Date: Sun, 21 Jun 2020 06:25:49 -0000
      4 Subject: Attachments with charset
      5 MIME-Version: 1.0
      6 Content-Type: multipart/mixed; boundary="===============2385509127900810307=="
      7 
      8 --===============2385509127900810307==
      9 Content-Type: text/plain; charset="utf-8"
     10 Content-Transfer-Encoding: 7bit
     11 
     12 This is the body.
     13 
     14 --===============2385509127900810307==
     15 Content-Type: text/plain; charset="us-ascii"
     16 Content-Transfer-Encoding: 7bit
     17 MIME-Version: 1.0
     18 Content-Disposition: attachment; filename="ascii.txt"
     19 
     20 This is ASCII
     21 
     22 --===============2385509127900810307==
     23 Content-Type: text/plain; charset="koi8-r"
     24 Content-Transfer-Encoding: quoted-printable
     25 MIME-Version: 1.0
     26 Content-Disposition: attachment; filename="cyrillic.txt"
     27 
     28 =F0=D2=C9=D7=C5=D4
     29 
     30 --===============2385509127900810307==
     31 Content-Type: text/plain; charset="utf-8"
     32 Content-Transfer-Encoding: base64
     33 MIME-Version: 1.0
     34 Content-Disposition: attachment; filename="emoji.txt"
     35 
     36 8J+Yggo=
     37 
     38 --===============2385509127900810307==
     39 Content-Type: text/plain
     40 Content-Transfer-Encoding: quoted-printable
     41 Content-Disposition: attachment; filename="bad.txt"
     42 MIME-Version: 1.0
     43 
     44 Embedded=F0garbage
     45 
     46 --===============2385509127900810307==
     47 Content-Type: text/plain; charset="invalid-test"; name="invalid-charset.txt"
     48 Content-Transfer-Encoding: quoted-printable
     49 Content-Disposition: attachment; filename="invalid-charset.txt"
     50 
     51 Example invalid charset
     52 --===============2385509127900810307==
     53 Content-Type: text/plain; charset="utf-7"
     54 Content-Transfer-Encoding: 7bit
     55 MIME-Version: 1.0
     56 Content-Disposition: attachment; filename="ascii.txt"
     57 
     58 This is +Jyg-UTF-7+Jyg-
     59 --===============2385509127900810307==
     60