aerc/commands
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 Fix crash when no message is selected 2019-12-04 09:45:07 -05:00
compose Add support for AUTH LOGIN submission 2019-11-01 11:02:01 -04:00
msg use correct headers for message part 2019-12-07 14:30:20 -05:00
msgview failback to Content-Type filename when encoded Content-Disposition is used 2019-12-07 14:30:35 -05:00
terminal all: purge redundant underscores 2019-09-04 16:30:57 -10:00
cd.go Make commands join args with spaces 2019-09-20 15:06:34 -04:00
commands.go Fix directory completion case sensitivity 2019-08-03 10:48:47 -04:00
ct.go Make commands join args with spaces 2019-09-20 15:06:34 -04:00
exec.go all: purge redundant underscores 2019-09-04 16:30:57 -10:00
global.go Implement basic tab completion support 2019-06-29 14:24:19 -04:00
help.go all: purge redundant underscores 2019-09-04 16:30:57 -10:00
history.go Add command history and cycling 2019-07-26 14:29:34 -04:00
new-account.go all: purge redundant underscores 2019-09-04 16:30:57 -10:00
next-tab.go all: use fmt.Errorf for fomartting errors 2019-09-04 16:30:57 -10:00
prompt.go all: use fmt.Errorf for fomartting errors 2019-09-04 16:30:57 -10:00
pwd.go all: purge redundant underscores 2019-09-04 16:30:57 -10:00
quit.go all: purge redundant underscores 2019-09-04 16:30:57 -10:00
set.go all: purge redundant underscores 2019-09-04 16:30:57 -10:00
term.go all: purge redundant underscores 2019-09-04 16:30:57 -10:00
util.go Sort path completions 2019-09-20 15:07:05 -04:00