about summary refs log tree commit diff
path: root/mflow.c
Commit message (Collapse)AuthorAgeFilesLines
* include strings.h for str(n)casecmpMichael Forney2020-09-251-0/+1
| | | | | | 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.
* pledge(2) all programsTim Kuijsten2020-09-061-0/+5
| | | | | | | | | | | | | | | | 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]
* mflow: avoid adding a space after the leading quotes if there already is oneLeah Neukirchen2019-01-101-2/+2
| | | | Found by lhynes.
* mflow: flowed: ensure progress by printing at least one word each timeLeah Neukirchen2017-11-091-1/+2
| | | | Even if this overflows the line length...
* mflow: flowed: reevaluate termination after line break.Leah Neukirchen2017-11-091-0/+1
|
* mflow: only accept flowed line with final space when reflowingLeah Neukirchen2017-09-191-1/+1
|
* mflow: fix argument parsingLeah Neukirchen2017-09-061-2/+2
|
* mflow: only space stuff when really reflowingLeah Neukirchen2017-09-061-1/+1
|
* mflow: add wrapping of long lines, add argument parsing, add quotingLeah Neukirchen2017-09-061-6/+24
|
* mflow: assume no reflow by default, when content-type existsLeah Neukirchen2017-09-021-0/+1
|
* mflow: flowed: add case where the word is too long for a lineLeah Neukirchen2017-09-021-1/+2
|
* styleLeah Neukirchen2017-08-311-3/+3
|
* mflow: use blaze822_mime_parameter properlyLeah Neukirchen2017-08-211-4/+4
| | | | Found using spam corpus at http://untroubled.org/spam/2017-08.7z.
* add mflowLeah Neukirchen2017-07-261-0/+187