Commit Graph

18 Commits (935f4bf5b92bb066f7c1aa9fbe41b685e7677180)

Author SHA1 Message Date
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