about summary refs log tree commit diff
path: root/magrep.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/+3
| | | | | | | | | | | | | | | | 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]
* magrep: fix use of uninitialized memoryDuncaen2019-02-281-1/+1
| | | | found by -fsanitize=memory
* magrep: fix memory leak in magrep message body searchJulian Rother2018-12-191-0/+1
| | | | Closes: #147 [via git-merge-pr]
* magrep: add -h, which is like -p but doesn't print the file name.Leah Neukirchen2018-09-101-4/+11
|
* magrep: add -l flagDuncaen2018-07-081-9/+13
| | | | Closes: #121 [via git-merge-pr]
* magrep: add *:REGEX to search in any headerLeah Neukirchen2018-02-041-13/+30
|
* magrep: keep threading while matching bodyDuncaen2017-11-151-4/+5
|
* styleLeah Neukirchen2017-08-311-4/+4
|
* magrep: use printf string precision to print matches instead of strndupDuncaen2017-02-231-8/+5
|
* magrep: continue matching mime parts in -p and or -o modeDuncaen2017-02-231-2/+2
|
* magrep: match body line by line if -p is specified without -c, -v and -oDuncaen2017-02-231-2/+12
|
* magrep: add -p to print matches and the context and -o to only print matchesDuncaen2017-02-231-11/+39
|
* magrep: add -mChristian Neukirchen2016-08-021-14/+18
|
* magrep: add search in bodyChristian Neukirchen2016-08-021-0/+47
|
* magrep: search message flags if header is emptyChristian Neukirchen2016-08-021-0/+7
|
* add magrepChristian Neukirchen2016-08-021-0/+116