Commit Graph

18 Commits

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.
2020-09-25 14:53:47 +02:00
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]
2020-09-06 16:34:56 +02:00
Leah Neukirchen
2e742622ab whitespace fixes 2018-05-23 16:42:41 +02:00
Leah Neukirchen
bcd258a8c8 maddr, mhdr: requote display names when needed 2018-05-23 16:24:48 +02:00
Leah Neukirchen
4b4fed9b8a mhdr: use strncasecmp to fix -M -h Received 2018-04-23 14:17:03 +02:00
Leah Neukirchen
1748c0f52a mhdr: do not return void values 2017-10-06 13:16:15 +02:00
Leah Neukirchen
98924a7fa1 mhdr: add -p to extract MIME parameters 2017-09-06 17:46:20 +02:00
Leah Neukirchen
66d0eff12f style 2017-08-31 17:30:17 +02:00
Leah Neukirchen
d28b02d143 mhdr: cast printing of time_t 2017-05-27 17:49:49 +02:00
Leah Neukirchen
7abcef17e7 mhdr: print_addresses: addr is sufficient for -H 2017-01-21 17:48:12 +01:00
Leah Neukirchen
1918eb7ba9 mhdr: print_addresses: first decode RFC2047, then parse address 2017-01-21 17:47:14 +01:00
Christian Neukirchen
7604589738 mhdr: -H to print file name 2016-08-17 15:45:09 +02:00
Christian Neukirchen
914b78a58f mhdr: set exit status to 1 when no header was found 2016-08-08 14:23:20 +02:00
Christian Neukirchen
fdfab10be7 mhdr: typo 2016-07-28 13:48:17 +02:00
Christian Neukirchen
ad6cec9e16 mhdr: almost-rewrite, use getopt 2016-07-28 13:08:04 +02:00
Christian Neukirchen
25f110951a mhdr: use blaze822_loop1 2016-07-23 00:29:38 +02:00
Christian Neukirchen
7e026ce08d mhdr: default to current message when interactive w/o args 2016-07-20 15:37:09 +02:00
Christian Neukirchen
a6ce4c720b mthread: rename from thread 2016-07-20 14:08:36 +02:00