Commit Graph

19 Commits (master)

Author SHA1 Message Date
Leah Neukirchen 0ed7f72d31 mhdr: print_addresses: decode only display part of address
RFC 2047.6.2:
   NOTE: Decoding and display of encoded-words occurs *after* a
   structured field body is parsed into tokens.
3 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 2e742622ab whitespace fixes 6 years ago
Leah Neukirchen bcd258a8c8 maddr, mhdr: requote display names when needed 6 years ago
Leah Neukirchen 4b4fed9b8a mhdr: use strncasecmp to fix -M -h Received 6 years ago
Leah Neukirchen 1748c0f52a mhdr: do not return void values 7 years ago
Leah Neukirchen 98924a7fa1 mhdr: add -p to extract MIME parameters 7 years ago
Leah Neukirchen 66d0eff12f style 7 years ago
Leah Neukirchen d28b02d143 mhdr: cast printing of time_t 7 years ago
Leah Neukirchen 7abcef17e7 mhdr: print_addresses: addr is sufficient for -H 7 years ago
Leah Neukirchen 1918eb7ba9 mhdr: print_addresses: first decode RFC2047, then parse address 7 years ago
Christian Neukirchen 7604589738 mhdr: -H to print file name 8 years ago
Christian Neukirchen 914b78a58f mhdr: set exit status to 1 when no header was found 8 years ago
Christian Neukirchen fdfab10be7 mhdr: typo 8 years ago
Christian Neukirchen ad6cec9e16 mhdr: almost-rewrite, use getopt 8 years ago
Christian Neukirchen 25f110951a mhdr: use blaze822_loop1 8 years ago
Christian Neukirchen 7e026ce08d mhdr: default to current message when interactive w/o args 8 years ago
Christian Neukirchen a6ce4c720b mthread: rename from thread 8 years ago