Commit Graph

83 Commits (master)

Author SHA1 Message Date
Leah Neukirchen fa27d73ddd mshow: don't spawn pager with -t 2 years ago
Leah Neukirchen e8981b723d safe_u8putstr: add oneline mode that prints CR/LF as C0 sequences 3 years ago
Leah Neukirchen e96f0707de mshow: show last part of multipart/mixed when none matched
This is in conformance with RFC 1341.
3 years ago
Leah Neukirchen 318ac214f1 mshow: add "-A all" to render all attachments
Closes #198.
3 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 04ed2d439a mshow: refactor, use charset logic in reply_mime too 4 years ago
Leah Neukirchen bb8054c2ff mshow: assume UTF-8 for unknown-8bit or x-unknown charsets 4 years ago
Leah Neukirchen 7e9e75bd88 mshow: print encoding error message to stderr 4 years ago
Leah Neukirchen 957c09909d mshow: only set cur when there is a new current message 4 years ago
Leah Neukirchen 5885bbe69f mshow: don't spawn pager for -x 4 years ago
Konst Mayer 71e2318c81 mshow: don't use --quit-at-eof in less by default
If the user wants it, he can add it to the LESS environment variable.

Closes: #163 [via git-merge-pr]
5 years ago
Vincent Breitmoser 8e4ed10b6c mshow: put message-id into env, if available
Closes: #135 [via git-merge-pr]
5 years ago
Leah Neukirchen 1349f617de mshow: exit with 1 if not all attachments were found 5 years ago
Leah Neukirchen c2e0dcec3c mshow: extract: skip leading spaces for file names
Found by Solene Rapenne.
5 years ago
Leah Neukirchen 2069a0e913 mshow: choose_alternative: skip empty MIME parts. 6 years ago
Leah Neukirchen d261b0cdcf mshow: add -B to decode MIME parameters in broken mails 6 years ago
Leah Neukirchen 6c6055b78b mshow: render_mime: don't print any MIME structure markers with -N.
Reported by Larry Hynes.
6 years ago
Leah Neukirchen 37db100dcd mshow: render_mime: render message/delivery-status as plain text 6 years ago
Leah Neukirchen 9f49370ae3 mshow: list_mime: fix small leak 6 years ago
Leah Neukirchen e2c243bc26 mshow: exit with status 1 if -R didn't find a plain text reply 6 years ago
Leah Neukirchen 6310898b10 mshow: list, reply: skip leading spaces for file names 7 years ago
Leah Neukirchen 06c9f23365 mshow: use %ld for longs 7 years ago
Leah Neukirchen 88bde0af33 mshow: render_mime: fix logic bug 7 years ago
Leah Neukirchen 5f45b7d533 use appropriate integer types
Mainly found with clang -Wconversion -Wshorten-64-to-32.
7 years ago
Leah Neukirchen f1789cfcef mshow: add -F to disable MIME filters 7 years ago
Leah Neukirchen 285671f0e2 mshow: show: treat non-mime mails as single-part text/plain mails 7 years ago
Leah Neukirchen 66d0eff12f style 7 years ago
Leah Neukirchen 4e13b73245 mshow: render_mime: avoid indexing into empty buffer
Found using spam corpus at http://untroubled.org/spam/2017-08.7z
7 years ago
Leah Neukirchen 4edca0ec3a mshow: use return value 62 for raw output of filters
E.g. for elinks -dump -dump-color-mode 3
7 years ago
Leah Neukirchen cf4bc05010 mshow: use "less -RFXe" when $PAGER is plain "less" 7 years ago
Leah Neukirchen 05e4d5b5fa mshow: fallback to text/plain when no content-type exists 7 years ago
Leah Neukirchen 98a40b5dd3 mshow: mark FALL THROUGH 7 years ago
Leah Neukirchen 9b8ab19a2b mshow: show Reply-To by default 7 years ago
Leah Neukirchen 01ad9ec927 mshow: add -N to not show MIME structure markers. 7 years ago
Leah Neukirchen d93871161a mshow: print_decode_header: bump buffer size 7 years ago
Leah Neukirchen 508371253c mshow: try to keep CRLF intact for -r 7 years ago
Leah Neukirchen e8107b1889 mshow: spawn a pager for interactive use 7 years ago
Leah Neukirchen e7ce5ecc78 mshow: no safe output for -R 7 years ago
Leah Neukirchen 5fae53b12b mshow: document -n 7 years ago
Leah Neukirchen bbbde2616b mshow: safely print filenames 7 years ago
Leah Neukirchen 93bfc9cf5f mshow: use blaze822_mime2231_parameter for filenames 7 years ago
Leah Neukirchen 935f4bf5b9 mshow: render_mime: don't access invalid addresses when no output was generated 7 years ago
Leah Neukirchen 564bb223ef mshow: print plain text safely 7 years ago
Leah Neukirchen 2b4e3aa66d clean up whitespace 7 years ago
Ivy Foster ca8cef1660 Add $MBLAZE environment variable to set profile location
As a side benefit, all callers of blaze822_home_file need only pass
the filename, so the base directory is set in only one place.
8 years ago
Christian Neukirchen d779211dc7 mshow: ensure plain text output ends with a newline 8 years ago
Christian Neukirchen 7377f0dfc3 mshow: rather, use -r -O to print the part raw 8 years ago
Christian Neukirchen 2776c838fe mshow: extract headers with -H -O 8 years ago
Christian Neukirchen 5eb7837aa8 mshow: simplify -H with orig_header 8 years ago
Christian Neukirchen cc8df261b2 mshow: extract_mime: body is used 8 years ago