Commit Graph

521 Commits

Author SHA1 Message Date
Duncaen
59900bed95 t: add magrep tests 2017-03-30 20:29:01 +02:00
Larry Hynes
0c7acf21bb mpick: fall-trough -> fall-through 2017-03-30 20:29:01 +02:00
Duncaen
d2677046dc add .travis.yml 2017-03-30 20:29:01 +02:00
Duncaen
914c0d744b mpick: add missing :R msglist type 2017-03-30 20:28:27 +02:00
Duncaen
79d5047cde mpick: open mail file only if necessary 2017-03-30 17:07:28 +02:00
Leah Neukirchen
4088f9f70b t/1000-mmime.t: wc -L is a gnuism 2017-03-30 16:44:00 +02:00
Leah Neukirchen
2c1ecbe4a6 t: beginnings of a test suite 2017-03-30 15:46:47 +02:00
Leah Neukirchen
d73a3a748a mmime: gen_file: append newline to error message 2017-03-30 15:40:05 +02:00
Leah Neukirchen
2d612ce166 mmime: print_header: refactor
Simplifies the code considerably.  QP-header-wrapping now happens inside
gen_qp.  We wrap the line in advance when this will save QP-encoding, or
splitting a QP-word into two.

Fixes #20.
2017-03-28 01:03:40 +02:00
Leah Neukirchen
6d492539d6 mquote: use printf 2017-03-26 20:44:10 +02:00
Leah Neukirchen
f771d062a5 mcom: use printf instead of echo
Fixes #19.
2017-03-26 20:43:15 +02:00
Leah Neukirchen
a27ba3370c filter: make more robust
MacOS will send POLLIN for empty reads on EOF, so detect ret == 0 too.
Also poll for POLLHUP, which other systems use to message EOF.

Fixes #18.
2017-03-26 19:21:33 +02:00
Leah Neukirchen
6b9f742d7d mgenmid: use gettimeofday instead of clock_gettime
Fixes #17.

Nanosecond precision wasn't needed, and many legacy operating systems
don't support this POSIX.1-2001 function.

We now use plain microseconds for the timestamp, which uses the range of
the 64-bit number better as well.  This will result in a Year 294247 problem.
2017-03-26 19:03:16 +02:00
Leah Neukirchen
d21ab392e9 safe_u8putstr: actually transcode assumed latin1 into valid utf8 2017-03-13 17:32:13 +01:00
Leah Neukirchen
53c6a3b37e mblaze.7: small edits 2017-03-13 16:12:31 +01:00
Leah Neukirchen
04b29f4e30 mscan: kill stray tab in format string 2017-03-13 15:59:18 +01:00
Leah Neukirchen
9733c2b65c mshow.1: document dangerous output 2017-03-13 15:55:29 +01:00
Leah Neukirchen
564bb223ef mshow: print plain text safely 2017-03-13 15:54:52 +01:00
Leah Neukirchen
14a12635bd mscan: don't print C0 control symbols 2017-03-13 15:49:30 +01:00
Duncaen
0370a28d49 msed: prefix error messages 2017-02-24 15:10:56 +01:00
Duncaen
73c833847e msed: error out on invalid expressions 2017-02-24 15:09:06 +01:00
Duncaen
8cd560fd42 magrep: use printf string precision to print matches instead of strndup 2017-02-23 20:47:38 +01:00
Duncaen
d3f14eaa55 mpick.1: improve EXAMPLES 2017-02-23 20:35:15 +01:00
Duncaen
5eea6f4efb mpick: fix warnings found by clang-analyze 2017-02-23 20:35:14 +01:00
Duncaen
24e3291723 magrep: continue matching mime parts in -p and or -o mode 2017-02-23 20:35:14 +01:00
Duncaen
10ed969f06 magrep: match body line by line if -p is specified without -c, -v and -o 2017-02-23 20:35:14 +01:00
Duncaen
11e62a17c5 magrep: add -p to print matches and the context and -o to only print matches 2017-02-23 20:34:31 +01:00
Leah Neukirchen
7eb2d7304f README: update 2017-02-20 15:40:07 +01:00
Leah Neukirchen
1b78a55dfe add mblaze-profile.5 2017-02-20 15:40:07 +01:00
leovilok
e61b972f36 remove remaining reference to mrepl in mmsg.7 2017-02-18 17:58:45 +01:00
Leah Neukirchen
ba736b0735 mseq: better error reporting 2017-02-18 16:47:39 +01:00
leovilok
f4a3feb70a mblaze: don't make $draft look like a sequence
Make sure $draft look like a file by prefixing it with "./", to avoid errors when we call other programs like msed.
2017-02-17 13:53:41 +01:00
Leah Neukirchen
2c5072ef5b mlist.1: typo 2017-02-14 22:44:47 +01:00
Leah Neukirchen
7a2204049e mlist: print a total line with -i when useful 2017-02-14 15:31:52 +01:00
Leah Neukirchen
2b74b23cea mlist: fix usage output 2017-02-14 15:31:52 +01:00
Duncaen
113445d963 contrib/mvi: fix cmdline and add ! to eval commands 2017-02-02 16:03:10 +01:00
Duncaen
407a1dc43f contrib/mvi: remove dead in_motion() 2017-02-02 15:32:24 +01:00
Duncaen
7e36e5413f Merge branch 'mpick' 2017-02-01 23:38:51 +01:00
Duncaen
58c4695c85 contrib/mvi: add mvi, a pager like interface with vi like functionality 2017-02-01 23:38:01 +01:00
Leah Neukirchen
2b4e3aa66d clean up whitespace 2017-01-26 20:27:26 +01:00
Leah Neukirchen
c561aca4c9 mflag: add: skip leading whitespace 2017-01-25 16:20:00 +01:00
Leah Neukirchen
e31cd95dc2 mflag: fix error message 2017-01-25 15:50:14 +01:00
Leah Neukirchen
2101db8ee3 man/mpick.1: use well-known section name EXAMPLES 2017-01-25 15:50:05 +01:00
josuah
7a6665c3e8 mpick.1: Adding an example section.
Closes: #11 [via git-merge-pr]
2017-01-23 21:19:03 +01:00
Leah Neukirchen
7abcef17e7 mhdr: print_addresses: addr is sufficient for -H 2017-01-21 17:48:12 +01:00
Leah Neukirchen
1918eb7ba9 mhdr: print_addresses: first decode RFC2047, then parse address 2017-01-21 17:47:14 +01:00
Leah Neukirchen
55ded86ad5 maddr: addr: first decode RFC2047, then parse address 2017-01-21 17:44:34 +01:00
Leah Neukirchen
cf36745b0c mscan: fmt_from: first decode RFC2047, then parse address 2017-01-21 17:40:52 +01:00
Leah Neukirchen
225e5787bf Leahize 2017-01-21 17:22:39 +01:00
Leah Neukirchen
0da278a9ad mlist: don't use blaze822_loop for the case when arguments are given
blaze822_loop replaces directory arguments with all cur/ mails, which is
not what we want in mlist.
2017-01-21 17:13:47 +01:00