Leah Neukirchen
ccceb10908
mpick: relax pledge for redirects
...
This allows mpick to create files and run popen.
In the future, we can only pledge this if these features are actually used.
4 years ago
Tim Kuijsten
4763032430
pledge(2) all programs
...
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]
4 years ago
Leah Neukirchen
6bd687bfdc
mmime: allow ; and =, for ";charset="
4 years ago
Leah Neukirchen
1e9f6cd06b
t/7000-mseq.t: add test for 74857db19
4 years ago
Leah Neukirchen
6649576fda
t/5000-mscan.t: typo
4 years ago
Leah Neukirchen
74857db199
mseq: reinitialize iter for each command line argument
...
Fixes #181 .
4 years ago
Leah Neukirchen
32b5837bfd
t/5000-mscan.t: add test for b41d2ef
4 years ago
Leah Neukirchen
b41d2efa40
seq: blaze822_loop: reinitialize iter for each command line argument
4 years ago
Leah Neukirchen
92bb41fa73
msort: order: remove dead assignment
...
Found by scan-build/clang 10.0.0
4 years ago
Leah Neukirchen
b2a6e3dcc0
seq: blaze822_seq_load: remove dead assignment
...
Found by scan-build/clang 10.0.0
4 years ago
Jeremy Bobbin
3f61249c05
seq: fix infinite loop when selecting thread of orphaned message
...
printf ' a\n' | mseq -S
mseq .=
Closes : #180 [via git-merge-pr]
4 years ago
Leah Neukirchen
04ed2d439a
mshow: refactor, use charset logic in reply_mime too
4 years ago
Leah Neukirchen
a02c7e451b
contrib/mrecode: assume UTF-8 for unknown-8bit or x-unknown charsets
4 years ago
Leah Neukirchen
bb8054c2ff
mshow: assume UTF-8 for unknown-8bit or x-unknown charsets
4 years ago
Leah Neukirchen
fec4e06671
mmime: be more strict when detecting content types for the include syntax
...
Previously, shebangs would be (mis)detected: #!/bin/sh -e
4 years ago
Leah Neukirchen
7e9e75bd88
mshow: print encoding error message to stderr
4 years ago
Leah Neukirchen
957c09909d
mshow: only set cur when there is a new current message
4 years ago
Duncan Overbruck
d9c3914924
mpick: breaking cmdline options
...
Two breaking changes which will make mpick fit more in with
all other mblaze tools by using mmsg(7) arguments:
- Use the -F flag to read script files.
- Remove msglist support
4 years ago
Leah Neukirchen
96c506085f
t: use - instead of /dev/stdin
4 years ago
Leah Neukirchen
30f3054bac
contrib/malternative: use - instead of /dev/stdin
4 years ago
Leah Neukirchen
b063294daf
mcom: use - instead of /dev/stdin
4 years ago
Leah Neukirchen
e7442fcc72
seq: - now refers to the message on stdin, use .- for previous message
4 years ago
Leah Neukirchen
54283ebeee
seq: cleanup
4 years ago
Julian Rother
db7b58f24a
mpick: fixed freeing pointer returned from getenv
...
Closes : #177 [via git-merge-pr]
4 years ago
Julian Rother
e5206792df
t/2000-mpick.t: test environment variables in expressions
4 years ago
Leah Neukirchen
282de65079
mrep: use Reply-From configuration to find From header
...
This allows replying from different addresses than Local-Mailbox
if they appear in To, Cc or Bcc.
Idea and initial patch by @nmeum.
4 years ago
Leah Neukirchen
3ea0c9c355
mrep: don't add another From: when -from is used already
...
Fixes #176 .
4 years ago
Leah Neukirchen
17fe13a95f
add contrib/mcount, a tool to count mails (possibly between pipes)
4 years ago
Leah Neukirchen
41a9a6b40d
mthread: remove count output
...
Closes #174 .
4 years ago
Leah Neukirchen
d777d370dd
t/lib.sh: work around a OpenBSD bug
...
Upstream report: https://marc.info/?i=871rnjhncc.fsf%20()%20vuxu%20!%20org
4 years ago
Leah Neukirchen
fb77179bbd
NEWS.md: update for 0.7
4 years ago
Leah Neukirchen
7cd43f4203
mlist: fix dangling else warning
4 years ago
Duncan Overbruck
b79e38b686
mpick: improve unknown binding error and add test case
4 years ago
Duncan Overbruck
0645634733
t/2000-mpick.t: check for double free with bindings
4 years ago
Duncan Overbruck
95a9c0837b
mpick: fix memory leaks
4 years ago
Duncaen
331d0e4680
mpick: use slurp instead of mmaping files
4 years ago
Duncaen
d45d1c4ff5
mpick: fix memory leak in parse_dur
4 years ago
Duncaen
d93c1e2fe4
mpick: always point to malloc memory in parse_string
4 years ago
Duncaen
aa2868822b
t/2000-mpick.t: add tests for all the new features
4 years ago
Duncaen
8ae4801dd4
mpick: add header decodeop for better address matching
4 years ago
Duncaen
32f0fcbc0d
mpick: add let expressions
4 years ago
Duncaen
d5afda072b
mpick: better error for missing ) over multiple lines
4 years ago
Duncaen
4baa330b63
mpick: allow reading expressions from files i.e. using #!/bin/mpick
4 years ago
Duncaen
d235a3e64c
mpick: minor cleanups/memleak fixes for parse_msglist
4 years ago
Duncaen
482bbffd2c
mpick: refactor mailfile handling
...
- fix some memory leaks
- fix handling of unexisting files/mthread containers
- in oneline mode use one mailinfo struct for each line
4 years ago
Duncaen
1010ae06bf
mpick: add support for multiline expressions and comments
4 years ago
Duncaen
b8cf02825a
mpick: add xcalloc and xstrdup
4 years ago
Duncaen
28d0d51e34
mpick: add freeexpr
4 years ago
Duncaen
8f0b6e2117
mpick: add ternary (conditional) operator
4 years ago
Duncaen
3968f2ef03
mpick: add skip expression
4 years ago