Commit Graph

16 Commits (master)

Author SHA1 Message Date
gco e6813fd07c solaris needs termios.h and __EXTENSIONS__ for TIOCGWINSZ and winsize 2 years ago
Leah Neukirchen 3496545358 mflow: fixed lines were not wrapped, add test suite
Reported by ninewise.
2 years ago
Michael Forney 50dfdf5605 include strings.h for str(n)casecmp
These POSIX functions are declared in strings.h, so include this
header explicitly instead of relying on the libc's default feature-test
macros to include it through string.h.
4 years ago
Tim Kuijsten 4763032430 pledge(2) all programs
All programs except mshow have a very tight set of promises. mshow
has a broad set of promises and might be a good future candidate
to further restrict using unveil(2).

This patch is based on commit 0300a112 by Alex Holst (dated
2017-12-07), which was proposed in GH PR #79.

* pledged mpick, mflow and mdate so that now all programs are pledged
* removed some unneeded promises and added some missing promises
* move err.h include and OpenBSD ifdef into a new xpledge.h
* cleaned up code aligning and whitespace

Closes: #179 [via git-merge-pr]
4 years ago
Leah Neukirchen db4c4a118c mflow: avoid adding a space after the leading quotes if there already is one
Found by lhynes.
5 years ago
Leah Neukirchen d46f65d38c mflow: flowed: ensure progress by printing at least one word each time
Even if this overflows the line length...
7 years ago
Leah Neukirchen c1fcb246bb mflow: flowed: reevaluate termination after line break. 7 years ago
Leah Neukirchen 7e9a73397b mflow: only accept flowed line with final space when reflowing 7 years ago
Leah Neukirchen a674be611c mflow: fix argument parsing 7 years ago
Leah Neukirchen 35181baf32 mflow: only space stuff when really reflowing 7 years ago
Leah Neukirchen ebeaf43a27 mflow: add wrapping of long lines, add argument parsing, add quoting 7 years ago
Leah Neukirchen 3a67663a5d mflow: assume no reflow by default, when content-type exists 7 years ago
Leah Neukirchen 7c1c2c3740 mflow: flowed: add case where the word is too long for a line 7 years ago
Leah Neukirchen 66d0eff12f style 7 years ago
Leah Neukirchen 6948b408a2 mflow: use blaze822_mime_parameter properly
Found using spam corpus at http://untroubled.org/spam/2017-08.7z.
7 years ago
Leah Neukirchen 9387d1fe07 add mflow 7 years ago