Commit Graph

24 Commits (9b8ab19a2be4ed190f722b309022ea6472e7ac15)

Author SHA1 Message Date
Leah Neukirchen 938b2c2d31 mmime: gen_attachment: try to generate filenames as atoms, use qp for double quotes 7 years ago
Leah Neukirchen 46a44e2f22 mmime: add mblaze/raw for plain text inclusion 7 years ago
Leah Neukirchen d8976d416c mmime: add -t to override toplevel content-type 7 years ago
Leah Neukirchen 67c0a3b17c mmime: print_header: only force qp-encoding for overlong lines
Lines SHOULD not be longer than 78 chars, and we try to fold like that,
but we only enforce qp-encoding for 7-bit safe lines if they would be
longer than 998, which they MUST not be.
7 years ago
Leah Neukirchen f53e8dc672 mmime: check: allow up to 998 chars in header lines 7 years ago
Leah Neukirchen d75c446aff mmime: use RFC2231 for Content-Disposition when needed 7 years ago
Leah Neukirchen d73a3a748a mmime: gen_file: append newline to error message 7 years ago
Leah Neukirchen 2d612ce166 mmime: print_header: refactor
Simplifies the code considerably.  QP-header-wrapping now happens inside
gen_qp.  We wrap the line in advance when this will save QP-encoding, or
splitting a QP-word into two.

Fixes #20.
7 years ago
Leah Neukirchen 2b4e3aa66d clean up whitespace 7 years ago
Christian Neukirchen 2ef903a065 mmime: don't truncate a #type line when it has invalid syntax 8 years ago
Christian Neukirchen 3095d48655 mmime: ensure a new token in qp header generation 8 years ago
Christian Neukirchen f56755cffd mman: gen_file: slurp the file instead of mmap 8 years ago
Christian Neukirchen 0b2e4880f5 mmime: gen_build: don't crash on #-line without space 8 years ago
Christian Neukirchen 472a74b75b use getdelim instead of getline
Avoids weird macros to build on FreeBSD.
8 years ago
Christian Neukirchen f9226dde7b mmime: generate LF before MIME boundaries 8 years ago
Christian Neukirchen d138866fd6 mmime: line length must be <=78 8 years ago
Christian Neukirchen c4822a983b mmime: add -c to check if MIME-encoding is needed 8 years ago
Christian Neukirchen 2073102d4d mmime: add -r for plain text 8 years ago
Christian Neukirchen a52af29aa9 mmime: simplify 8 years ago
Christian Neukirchen cf594afb83 mmime: fix prevq logic 8 years ago
Christian Neukirchen 0ce958a22c mmime: only qp after newline when actually needed 8 years ago
Christian Neukirchen c6d4c79771 mmime: delete dead store
Found by clang-analyzer.
8 years ago
Christian Neukirchen b8c2685a60 mmime: encode headers when neccessary
This is still a bit clumsy, but I'm not sure how to make it better.
8 years ago
Christian Neukirchen 9545981777 add mmime 8 years ago