aerc/widgets
Leszek Cimała 4f2892695e failback to Content-Type filename when encoded Content-Disposition is used
Hi!
This patch will fix missing filename if it is RFC2231 encoded with charset
different then ASCII or UTF8. Example how it looks like in mail:

Content-Type: application/pdf;
 name="=?UTF-8?Q?Opis_przedmiotu_zam=c3=b3wienia_-_za=c5=82=c4=85cznik_nr_1?=
 =?UTF-8?Q?=2epdf?="
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
 filename*0*=iso-8859-2''%4F%70%69%73%20%70%72%7A%65%64%6D%69%6F%74%75%20;
 filename*1*=%7A%61%6D%F3%77%69%65%6E%69%61%20%2D%20%7A%61%B3%B1%63%7A%6E;
 filename*2*=%69%6B%20%6E%72%20%31%2E%70%64%66

Yes, this should be forbidden :-). Anyway, best solotion in such cases
is to failback to Content-Type name. I am not sure if it is guaranted to
be there, but probably it will.

Leszek
2019-12-07 14:30:35 -05:00
..
account-wizard.go Add UI options to save/pipe messages with unsupported mimetypes 2019-11-17 13:19:13 -05:00
account.go Add sorting functionality 2019-09-20 14:56:02 -04:00
aerc.go Add UI options to save/pipe messages with unsupported mimetypes 2019-11-17 13:19:13 -05:00
compose.go Parse headers from template 2019-12-07 14:29:48 -05:00
dirlist.go Add display of unread messages in dirlist 2019-09-11 12:37:43 -04:00
exline.go Add UI options to save/pipe messages with unsupported mimetypes 2019-11-17 13:19:13 -05:00
headerlayout.go Support configurable header layout in compose widget 2019-07-26 14:22:04 -04:00
msglist.go Complete the F rune. 2019-11-17 13:19:20 -05:00
msgviewer.go failback to Content-Type filename when encoded Content-Disposition is used 2019-12-07 14:30:35 -05:00
providesmessage.go Fix crashes when operating on empty folder (#216) 2019-07-10 13:21:38 -04:00
selecter.go Add UI options to save/pipe messages with unsupported mimetypes 2019-11-17 13:19:13 -05:00
spinner.go Add modify-labels command 2019-09-12 16:17:24 -04:00
status.go Show currently pressed keys in statusline 2019-07-17 17:12:52 -04:00
tabhost.go Add UI options to save/pipe messages with unsupported mimetypes 2019-11-17 13:19:13 -05:00
terminal.go widgets/terminal: Reap more zombies 2019-11-21 14:34:50 -05:00