Commit Graph

17 Commits (master)

Author SHA1 Message Date
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
Duncaen c8ce6d220c magrep: fix use of uninitialized memory
found by -fsanitize=memory
5 years ago
Julian Rother 3cc1944877 magrep: fix memory leak in magrep message body search
Closes: #147 [via git-merge-pr]
5 years ago
Leah Neukirchen 1336ea5512 magrep: add -h, which is like -p but doesn't print the file name. 6 years ago
Duncaen 98918783aa magrep: add -l flag
Closes: #121 [via git-merge-pr]
6 years ago
Leah Neukirchen 80a74ddc98 magrep: add *:REGEX to search in any header 6 years ago
Duncaen 8b50a794b0 magrep: keep threading while matching body 7 years ago
Leah Neukirchen 66d0eff12f style 7 years ago
Duncaen 8cd560fd42 magrep: use printf string precision to print matches instead of strndup 7 years ago
Duncaen 24e3291723 magrep: continue matching mime parts in -p and or -o mode 7 years ago
Duncaen 10ed969f06 magrep: match body line by line if -p is specified without -c, -v and -o 7 years ago
Duncaen 11e62a17c5 magrep: add -p to print matches and the context and -o to only print matches 7 years ago
Christian Neukirchen 1c3b2019bd magrep: add -m 8 years ago
Christian Neukirchen b451fe788b magrep: add search in body 8 years ago
Christian Neukirchen 56e89c9a55 magrep: search message flags if header is empty 8 years ago
Christian Neukirchen 612d1564cc add magrep 8 years ago