summary refs log tree commit diff
path: root/mshow.c
Commit message (Collapse)AuthorAgeFilesLines
* safe_u8putstr: add oneline mode that prints CR/LF as C0 sequencesLeah Neukirchen2021-03-151-14/+14
|
* mshow: show last part of multipart/mixed when none matchedLeah Neukirchen2021-01-171-1/+8
| | | | This is in conformance with RFC 1341.
* mshow: add "-A all" to render all attachmentsLeah Neukirchen2021-01-171-3/+4
| | | | Closes #198.
* pledge(2) all programsTim Kuijsten2020-09-061-0/+8
| | | | | | | | | | | | | | | | 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]
* mshow: refactor, use charset logic in reply_mime tooLeah Neukirchen2020-08-081-11/+14
|
* mshow: assume UTF-8 for unknown-8bit or x-unknown charsetsLeah Neukirchen2020-08-081-1/+4
|
* mshow: print encoding error message to stderrLeah Neukirchen2020-08-021-1/+1
|
* mshow: only set cur when there is a new current messageLeah Neukirchen2020-08-021-1/+2
|
* mshow: don't spawn pager for -xLeah Neukirchen2020-03-141-1/+1
|
* mshow: don't use --quit-at-eof in less by defaultKonst Mayer2019-08-141-1/+1
| | | | | | If the user wants it, he can add it to the LESS environment variable. Closes: #163 [via git-merge-pr]
* mshow: put message-id into env, if availableVincent Breitmoser2019-01-291-0/+5
| | | | Closes: #135 [via git-merge-pr]
* mshow: exit with 1 if not all attachments were foundLeah Neukirchen2019-01-021-0/+8
|
* mshow: extract: skip leading spaces for file namesLeah Neukirchen2018-12-161-0/+2
| | | | Found by Solene Rapenne.
* mshow: choose_alternative: skip empty MIME parts.Leah Neukirchen2018-11-141-0/+4
|
* mshow: add -B to decode MIME parameters in broken mailsLeah Neukirchen2018-04-171-1/+9
|
* mshow: render_mime: don't print any MIME structure markers with -N.Leah Neukirchen2018-02-071-3/+6
| | | | Reported by Larry Hynes.
* mshow: render_mime: render message/delivery-status as plain textLeah Neukirchen2018-01-161-1/+2
|
* mshow: list_mime: fix small leakLeah Neukirchen2018-01-111-0/+1
|
* mshow: exit with status 1 if -R didn't find a plain text replyLeah Neukirchen2018-01-091-0/+6
|
* mshow: list, reply: skip leading spaces for file namesLeah Neukirchen2017-12-061-0/+4
|
* mshow: use %ld for longsLeah Neukirchen2017-10-131-6/+6
|
* mshow: render_mime: fix logic bugLeah Neukirchen2017-10-061-1/+1
|
* use appropriate integer typesLeah Neukirchen2017-10-061-3/+3
| | | | Mainly found with clang -Wconversion -Wshorten-64-to-32.
* mshow: add -F to disable MIME filtersLeah Neukirchen2017-09-221-3/+5
|
* mshow: show: treat non-mime mails as single-part text/plain mailsLeah Neukirchen2017-09-061-1/+1
|
* styleLeah Neukirchen2017-08-311-20/+20
|
* mshow: render_mime: avoid indexing into empty bufferLeah Neukirchen2017-08-211-1/+1
| | | | Found using spam corpus at http://untroubled.org/spam/2017-08.7z
* mshow: use return value 62 for raw output of filtersLeah Neukirchen2017-08-201-2/+5
| | | | E.g. for elinks -dump -dump-color-mode 3
* mshow: use "less -RFXe" when $PAGER is plain "less"Leah Neukirchen2017-08-171-1/+6
|
* mshow: fallback to text/plain when no content-type existsLeah Neukirchen2017-08-051-3/+5
|
* mshow: mark FALL THROUGHLeah Neukirchen2017-06-231-0/+5
|
* mshow: show Reply-To by defaultLeah Neukirchen2017-06-181-1/+1
|
* mshow: add -N to not show MIME structure markers.Leah Neukirchen2017-06-181-10/+17
|
* mshow: print_decode_header: bump buffer sizeLeah Neukirchen2017-06-131-1/+1
|
* mshow: try to keep CRLF intact for -rLeah Neukirchen2017-05-261-1/+6
|
* mshow: spawn a pager for interactive useLeah Neukirchen2017-05-231-0/+23
|
* mshow: no safe output for -RLeah Neukirchen2017-05-231-1/+1
|
* mshow: document -nLeah Neukirchen2017-05-231-1/+1
|
* mshow: safely print filenamesLeah Neukirchen2017-04-061-6/+16
|
* mshow: use blaze822_mime2231_parameter for filenamesLeah Neukirchen2017-04-061-12/+11
|
* mshow: render_mime: don't access invalid addresses when no output was generatedLeah Neukirchen2017-04-061-3/+5
|
* mshow: print plain text safelyLeah Neukirchen2017-03-131-25/+32
|
* clean up whitespaceLeah Neukirchen2017-01-261-10/+10
|
* Add $MBLAZE environment variable to set profile locationIvy Foster2016-09-011-1/+1
| | | | | 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.
* mshow: ensure plain text output ends with a newlineChristian Neukirchen2016-08-091-4/+8
|
* mshow: rather, use -r -O to print the part rawChristian Neukirchen2016-08-061-4/+12
|
* mshow: extract headers with -H -OChristian Neukirchen2016-08-061-0/+12
|
* mshow: simplify -H with orig_headerChristian Neukirchen2016-08-061-12/+3
|
* mshow: extract_mime: body is usedChristian Neukirchen2016-08-061-1/+0
|
* rfc2045: import walk_mimeChristian Neukirchen2016-08-021-56/+13
|