Commit Graph

755 Commits

Author SHA1 Message Date
Alex Holst
78988a5dce Merge branch 'master' of https://github.com/chneukirchen/mblaze 2017-11-30 19:42:33 +01:00
Leah Neukirchen
4d40475364 mscan: fetch window size from /dev/tty
Fixes mscan width inside mless.
2017-11-28 18:31:49 +01:00
Alex Holst
fd18594324 Merge branch 'master' of https://github.com/chneukirchen/mblaze 2017-11-26 10:12:07 +01:00
Leah Neukirchen
3e6f8047a6 u8decode: detect invalid encodings 2017-11-23 16:22:06 +01:00
Leah Neukirchen
73641367db revamp utf-8 handling code 2017-11-22 23:48:32 +01:00
Alex Holst
f2adb23a68 Merge branch 'master' of https://github.com/chneukirchen/mblaze 2017-11-22 08:20:17 +01:00
Duncaen
8b50a794b0 magrep: keep threading while matching body 2017-11-15 18:30:54 +01:00
Leah Neukirchen
bb15eac90f GNUmakefile: prefer CFLAGS from env, move hardening to overridable default flags 2017-11-14 13:25:41 +01:00
Alex Holst
b3362c117b Merge branch 'master' of https://github.com/chneukirchen/mblaze 2017-11-11 21:02:53 +01:00
Duncaen
a604469303 t: add test case for latest magrep crash
This crash was reported in #76 and resolved with
commit 6239ef35357824308df079bd6df0dc4b202e898.
2017-11-11 17:27:00 +01:00
Leah Neukirchen
e6239ef353 rfc2047: blaze822_decide_rfc2047: ensure enough space for NUL-termination
Closes #76.
2017-11-11 16:57:52 +01:00
Leah Neukirchen
d46f65d38c mflow: flowed: ensure progress by printing at least one word each time
Even if this overflows the line length...
2017-11-09 15:09:59 +01:00
Leah Neukirchen
c1fcb246bb mflow: flowed: reevaluate termination after line break. 2017-11-09 13:43:06 +01:00
Leah Neukirchen
5131b4305f mscan: display TO: address decode 2017-11-08 21:32:28 +01:00
Alex Holst
d44975f26d Merge branch 'master' of https://github.com/chneukirchen/mblaze 2017-10-31 10:31:04 +01:00
Leah Neukirchen
00a1382175 mlist: use a static buffer, clean up control flow 2017-10-29 22:08:32 +01:00
Alex Holst
3a25873a64 Merge branch 'master' of https://github.com/chneukirchen/mblaze 2017-10-28 21:41:36 +02:00
Duncaen
4e7a5c5ab6 mpick: add negations 2017-10-26 23:14:23 +02:00
Leah Neukirchen
6a074d7451 mmsg.7: consistently speak of sequences and ranges 2017-10-25 15:41:45 +02:00
Leah Neukirchen
06c9f23365 mshow: use %ld for longs 2017-10-13 15:48:39 +02:00
Leah Neukirchen
be6bbf6056 blaze822: blaze822_addr: ensure strlen is not run on null pointer
Found by Larry Hynes.
2017-10-08 21:15:49 +02:00
Leah Neukirchen
5fe0003c98 mscan: revert width to int 2017-10-06 13:20:28 +02:00
Leah Neukirchen
88bde0af33 mshow: render_mime: fix logic bug 2017-10-06 13:16:30 +02:00
Leah Neukirchen
1748c0f52a mhdr: do not return void values 2017-10-06 13:16:15 +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
ce9ac3aff4 blaze822: blaze822_addr: quote local-part if needed 2017-10-03 23:43:59 +02:00
Alex Holst
5c96909456 Merge branch 'master' of https://github.com/chneukirchen/mblaze 2017-09-30 19:22:28 +02:00
Leah Neukirchen
5ff71ace36 rfc2047: blaze822_decode_qp: decode invalid qp-codes as literal 2017-09-27 14:42:54 +02:00
Leah Neukirchen
f1789cfcef mshow: add -F to disable MIME filters 2017-09-22 15:37:36 +02:00
Leah Neukirchen
75ba2ab9a5 mcom: automatically run mmime when deemed necessary 2017-09-22 14:53:30 +02:00
Leah Neukirchen
d4cbac0aa5 mmime: gen_qp: quote ^From and ^.$ to be safe 2017-09-21 14:53:13 +02:00
Leah Neukirchen
54435b30b6 mmime: gen_qp: encode trailing space and tab as =20/=09
See RFC2045 6.7.(3):
> It follows that an octet with decimal value 9 or 32 appearing at the
> end of an encoded line must be represented according to Rule #1.

Prefer this over generating a soft-line break and then a real line break.
2017-09-19 16:43:58 +02:00
Leah Neukirchen
7e9a73397b mflow: only accept flowed line with final space when reflowing 2017-09-19 14:58:20 +02:00
Leah Neukirchen
6557dec05b GNUmakefile: fix OpenBSD build
By sunil@nimmagadda.net.
2017-09-19 14:50:13 +02:00
Alex Holst
888ed08855 Merge branch 'master' of https://github.com/chneukirchen/mblaze 2017-09-18 13:10:20 +02:00
Leah Neukirchen
3ebe373309 GNUmakefile: tweaks to make it easier for OpenBSD ports 2017-09-16 16:48:55 +02:00
Leah Neukirchen
a674be611c mflow: fix argument parsing 2017-09-06 18:47:26 +02:00
Leah Neukirchen
35181baf32 mflow: only space stuff when really reflowing 2017-09-06 18:41:31 +02:00
Leah Neukirchen
ebeaf43a27 mflow: add wrapping of long lines, add argument parsing, add quoting 2017-09-06 18:39:31 +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
34066eec64 contrib: add mrecode 2017-09-06 17:54:30 +02:00
Leah Neukirchen
98924a7fa1 mhdr: add -p to extract MIME parameters 2017-09-06 17:46:20 +02:00
Leah Neukirchen
3a67663a5d mflow: assume no reflow by default, when content-type exists 2017-09-02 18:29:46 +02:00
Leah Neukirchen
7c1c2c3740 mflow: flowed: add case where the word is too long for a line 2017-09-02 18:23:17 +02:00
Leah Neukirchen
3bfd9319e9 mflag: fix behavior with no arguments and reading from not a tty 2017-09-01 17:34:36 +02:00
Leah Neukirchen
66d0eff12f style 2017-08-31 17:30:17 +02:00
Sören Tempel
dfe09a7c5e mquote: make sed expression to strip signature work with busybox sed
Closes: #74 [via git-merge-pr]
2017-08-22 18:21:28 +02:00
Leah Neukirchen
6f99ef55a8 mgenmid: printb36: fix off-by-one
Closes #73.
2017-08-21 19:40:00 +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
6948b408a2 mflow: use blaze822_mime_parameter properly
Found using spam corpus at http://untroubled.org/spam/2017-08.7z.
2017-08-21 19:12:19 +02:00