Commit Graph

53 Commits

Author SHA1 Message Date
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
Christian Neukirchen
68042c68c7 mshow: fix header display with -H 2016-07-26 19:41:10 +02:00
Christian Neukirchen
2885988c5a str*casecmp is in <strings.h> 2016-07-26 18:18:37 +02:00
Christian Neukirchen
93842048c6 mshow: decode headers of message/rfc822 parts 2016-07-26 17:00:15 +02:00
Christian Neukirchen
b644998fe6 mshow: display relative date 2016-07-24 23:17:16 +02:00
Christian Neukirchen
1ab7bf9651 mshow: decode headers in default view 2016-07-24 22:11:52 +02:00
Christian Neukirchen
3ed3878b2b mshow: use fnmatch for extraction 2016-07-23 00:46:48 +02:00
Christian Neukirchen
6c749f9537 mshow: extract: resolve messages using loop1 2016-07-23 00:25:27 +02:00
Christian Neukirchen
6c1e0d8d56 seq: add blaze822_loop1 for easier argument overriding 2016-07-23 00:25:18 +02:00
Christian Neukirchen
8817e71e64 mshow: -t defaults to . when used interactively 2016-07-23 00:16:40 +02:00
Christian Neukirchen
bf89d5c180 mshow: render_mime: set a default mime type 2016-07-23 00:16:01 +02:00
Christian Neukirchen
61cd838785 mshow: don't crash on missing Content-Type (consider it text/plain) 2016-07-22 18:43:34 +02:00
Christian Neukirchen
87d2135104 mshow: forgot to free
Found by clang-analyzer.
2016-07-21 20:27:44 +02:00
Christian Neukirchen
396f1ed8df mshow: extract_mime: fix logic to not free filename pointing to auto var
Found by clang-analyzer.
2016-07-21 20:26:37 +02:00
Christian Neukirchen
be7d711cdf mshow: indent tree by one level 2016-07-20 23:11:48 +02:00
Christian Neukirchen
ec6bee84f6 mshow: extract file name logic 2016-07-20 23:11:13 +02:00
Christian Neukirchen
d52fa6bf4d mshow: don't extract to absolute paths
duh.
2016-07-20 23:10:35 +02:00
Christian Neukirchen
8672f495c3 mshow: check isatty for default behavior 2016-07-20 19:23:42 +02:00
Christian Neukirchen
7d693e1c7e mshow: output filename for -t 2016-07-20 18:51:41 +02:00
Christian Neukirchen
113676c48e mshow: -R to render all text/plain parts
(should be extended to text/html later if they are the only ones...)
2016-07-20 16:58:06 +02:00
Christian Neukirchen
bb25a9d8a0 mshow: fix message 2016-07-20 16:03:20 +02:00
Christian Neukirchen
6dc9eeb050 mshow: default to current message when interactive w/o args 2016-07-20 15:38:35 +02:00