Commit Graph

74 Commits

Author SHA1 Message Date
Leah Neukirchen
5885bbe69f mshow: don't spawn pager for -x 2020-03-14 17:30:48 +01:00
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]
2019-08-14 21:49:42 +02:00
Vincent Breitmoser
8e4ed10b6c mshow: put message-id into env, if available
Closes: #135 [via git-merge-pr]
2019-01-29 13:20:06 +01:00
Leah Neukirchen
1349f617de mshow: exit with 1 if not all attachments were found 2019-01-02 18:39:19 +01:00
Leah Neukirchen
c2e0dcec3c mshow: extract: skip leading spaces for file names
Found by Solene Rapenne.
2018-12-16 18:53:22 +01:00
Leah Neukirchen
2069a0e913 mshow: choose_alternative: skip empty MIME parts. 2018-11-14 15:04:36 +01:00
Leah Neukirchen
d261b0cdcf mshow: add -B to decode MIME parameters in broken mails 2018-04-17 15:26:19 +02:00
Leah Neukirchen
6c6055b78b mshow: render_mime: don't print any MIME structure markers with -N.
Reported by Larry Hynes.
2018-02-07 11:30:31 +01:00
Leah Neukirchen
37db100dcd mshow: render_mime: render message/delivery-status as plain text 2018-01-16 18:14:06 +01:00
Leah Neukirchen
9f49370ae3 mshow: list_mime: fix small leak 2018-01-11 15:39:51 +01:00
Leah Neukirchen
e2c243bc26 mshow: exit with status 1 if -R didn't find a plain text reply 2018-01-09 17:01:35 +01:00
Leah Neukirchen
6310898b10 mshow: list, reply: skip leading spaces for file names 2017-12-06 14:00:38 +01:00
Leah Neukirchen
06c9f23365 mshow: use %ld for longs 2017-10-13 15:48:39 +02:00
Leah Neukirchen
88bde0af33 mshow: render_mime: fix logic bug 2017-10-06 13:16:30 +02:00
Leah Neukirchen
5f45b7d533 use appropriate integer types
Mainly found with clang -Wconversion -Wshorten-64-to-32.
2017-10-06 13:15:28 +02:00
Leah Neukirchen
f1789cfcef mshow: add -F to disable MIME filters 2017-09-22 15:37:36 +02:00
Leah Neukirchen
285671f0e2 mshow: show: treat non-mime mails as single-part text/plain mails 2017-09-06 18:38:42 +02:00
Leah Neukirchen
66d0eff12f style 2017-08-31 17:30:17 +02:00
Leah Neukirchen
4e13b73245 mshow: render_mime: avoid indexing into empty buffer
Found using spam corpus at http://untroubled.org/spam/2017-08.7z
2017-08-21 19:13:14 +02:00
Leah Neukirchen
4edca0ec3a mshow: use return value 62 for raw output of filters
E.g. for elinks -dump -dump-color-mode 3
2017-08-20 17:00:14 +02:00
Leah Neukirchen
cf4bc05010 mshow: use "less -RFXe" when $PAGER is plain "less" 2017-08-17 21:07:46 +02:00
Leah Neukirchen
05e4d5b5fa mshow: fallback to text/plain when no content-type exists 2017-08-05 17:46:25 +02:00
Leah Neukirchen
98a40b5dd3 mshow: mark FALL THROUGH 2017-06-23 20:12:49 +02:00
Leah Neukirchen
9b8ab19a2b mshow: show Reply-To by default 2017-06-18 17:56:07 +02:00
Leah Neukirchen
01ad9ec927 mshow: add -N to not show MIME structure markers. 2017-06-18 17:32:42 +02:00
Leah Neukirchen
d93871161a mshow: print_decode_header: bump buffer size 2017-06-13 17:30:53 +02:00
Leah Neukirchen
508371253c mshow: try to keep CRLF intact for -r 2017-05-26 23:27:48 +02:00
Leah Neukirchen
e8107b1889 mshow: spawn a pager for interactive use 2017-05-23 15:16:27 +02:00
Leah Neukirchen
e7ce5ecc78 mshow: no safe output for -R 2017-05-23 15:05:56 +02:00
Leah Neukirchen
5fae53b12b mshow: document -n 2017-05-23 15:05:33 +02:00
Leah Neukirchen
bbbde2616b mshow: safely print filenames 2017-04-06 22:31:27 +02:00
Leah Neukirchen
93bfc9cf5f mshow: use blaze822_mime2231_parameter for filenames 2017-04-06 21:02:16 +02:00
Leah Neukirchen
935f4bf5b9 mshow: render_mime: don't access invalid addresses when no output was generated 2017-04-06 21:02:16 +02:00
Leah Neukirchen
564bb223ef mshow: print plain text safely 2017-03-13 15:54:52 +01:00
Leah Neukirchen
2b4e3aa66d clean up whitespace 2017-01-26 20:27:26 +01:00
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.
2016-09-01 18:50:20 -05:00
Christian Neukirchen
d779211dc7 mshow: ensure plain text output ends with a newline 2016-08-09 20:53:43 +02:00
Christian Neukirchen
7377f0dfc3 mshow: rather, use -r -O to print the part raw 2016-08-06 20:10:33 +02:00
Christian Neukirchen
2776c838fe mshow: extract headers with -H -O 2016-08-06 19:30:45 +02:00
Christian Neukirchen
5eb7837aa8 mshow: simplify -H with orig_header 2016-08-06 19:28:46 +02:00
Christian Neukirchen
cc8df261b2 mshow: extract_mime: body is used 2016-08-06 18:40:01 +02:00
Christian Neukirchen
27b21d7e20 rfc2045: import walk_mime 2016-08-02 16:13:25 +02:00
Christian Neukirchen
41474c2e68 rename .santoku to .mblaze 2016-08-01 19:36:23 +02:00
Christian Neukirchen
2aaa3cecd8 blaze822: blaze822_chdr: downcase header 2016-08-01 00:04:35 +02:00
Christian Neukirchen
08f5a8e1dd mshow: hard-code simple multipart/alternative policy 2016-07-29 17:07:25 +02:00
Christian Neukirchen
8228619e05 mshow: allow filters to skip and select multipart parts 2016-07-29 15:55:57 +02:00
Christian Neukirchen
be2ca1ba42 mshow: actually filter the parts 2016-07-29 15:15:57 +02:00
Christian Neukirchen
5d1266b38f mshow: normalize CRLF for plain text parts 2016-07-29 15:08:16 +02:00
Christian Neukirchen
0a53f92e06 mshow: writefile: write in a loop 2016-07-26 22:09:26 +02:00
Christian Neukirchen
905851a851 mshow: add usage 2016-07-26 22:09:26 +02:00