Fork of the aerc email client (https://sr.ht/~rjarry/aerc)
Find a file
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
commands failback to Content-Type filename when encoded Content-Disposition is used 2019-12-07 14:30:35 -05:00
config Complete the F rune. 2019-11-17 13:19:20 -05:00
doc Complete the F rune. 2019-11-17 13:19:20 -05:00
filters Strip carriage returns (^M) when filtering emails 2019-08-20 16:05:20 +09:00
lib Initialize an empty message map in the message store on initialization 2019-12-07 14:29:36 -05:00
models Factor IMAP-specific structs out of UI models 2019-07-08 16:06:28 -04:00
templates Correct capitalization in quoted_reply 2019-11-10 13:36:25 -05:00
widgets failback to Content-Type filename when encoded Content-Disposition is used 2019-12-07 14:30:35 -05:00
worker decode(RFC 2047) imap headers to fix encoding in subject & filenames 2019-12-07 14:30:33 -05:00
.build.yml Add .build.yml 2019-07-07 18:51:51 -04:00
.gitignore Subsitute prefix in aerc.conf for install 2019-05-26 10:27:22 -04:00
aerc.go Open mailto links in a new aerc instance if needed. 2019-09-29 12:36:35 -04:00
go.mod Add support for AUTH LOGIN submission 2019-11-01 11:02:01 -04:00
go.sum Add support for AUTH LOGIN submission 2019-11-01 11:02:01 -04:00
LICENSE Add README.md, update license (MIT -2019) 2019-01-13 20:09:07 -05:00
Makefile fix make install directiories permissions 2019-12-07 14:29:57 -05:00
README.md Add notmuch docs 2019-08-08 10:11:20 +09:00

aerc

aerc is an email client for your terminal.

Join the IRC channel: #aerc on irc.freenode.net for end-user support, and #aerc-dev for development.

Building

Install the dependencies:

  • go (>=1.12)
  • scdoc

Then compile aerc:

$ make

aerc optionally supports notmuch. To enable it, you need to have a recent version of notmuch, including the header files (notmuch.h). Then compile aerc with the necessary build tags:

$ GOFLAGS=-tags=notmuch make

Installation

# make install
$ aerc

On its first run, aerc will copy the default config files to ~/.config/aerc and show the account configuration wizard.

If you redirect stdout to a file, logging output will be written to that file:

$ aerc > log

Resources

Send patches and questions to ~sircmpwn/aerc@lists.sr.ht.

Subscribe to release announcements on ~sircmpwn/aerc-announce

Bugs & todo here: ~sircmpwn/aerc2