about summary refs log tree commit diff
path: root/mpick.c
Commit message (Collapse)AuthorAgeFilesLines
* mpick: use function pointer type for callbackMichael Forney2020-09-251-1/+1
| | | | | | | | Though POSIX requires this conversion to work correctly (for dlsym), it is not valid in ISO C, so it is better to just uses the appropriate function pointer type. Closes: #185 [via git-merge-pr]
* mpick: relax pledge for redirectsLeah Neukirchen2020-09-061-1/+1
| | | | | This allows mpick to create files and run popen. In the future, we can only pledge this if these features are actually used.
* pledge(2) all programsTim Kuijsten2020-09-061-0/+3
| | | | | | | | | | | | | | | | 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]
* mpick: breaking cmdline optionsDuncan Overbruck2020-07-301-127/+18
| | | | | | | 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
* mpick: fixed freeing pointer returned from getenvJulian Rother2020-06-071-1/+2
| | | | Closes: #177 [via git-merge-pr]
* mpick: improve unknown binding error and add test caseDuncan Overbruck2020-05-151-3/+3
|
* mpick: fix memory leaksDuncan Overbruck2020-05-151-8/+24
|
* mpick: use slurp instead of mmaping filesDuncaen2020-05-151-14/+7
|
* mpick: fix memory leak in parse_durDuncaen2020-05-151-14/+15
|
* mpick: always point to malloc memory in parse_stringDuncaen2020-05-151-2/+2
|
* mpick: add header decodeop for better address matchingDuncaen2020-05-151-72/+104
|
* mpick: add let expressionsDuncaen2020-05-151-4/+110
|
* mpick: better error for missing ) over multiple linesDuncaen2020-05-151-6/+7
|
* mpick: allow reading expressions from files i.e. using #!/bin/mpickDuncaen2020-05-151-5/+40
|
* mpick: minor cleanups/memleak fixes for parse_msglistDuncaen2020-05-151-8/+6
|
* mpick: refactor mailfile handlingDuncaen2020-05-151-65/+66
| | | | | | - fix some memory leaks - fix handling of unexisting files/mthread containers - in oneline mode use one mailinfo struct for each line
* mpick: add support for multiline expressions and commentsDuncaen2020-05-151-12/+57
|
* mpick: add xcalloc and xstrdupDuncaen2020-05-151-28/+38
|
* mpick: add freeexprDuncaen2020-05-151-0/+46
|
* mpick: add ternary (conditional) operatorDuncaen2020-05-151-5/+33
|
* mpick: add skip expressionDuncaen2020-05-151-0/+5
|
* mpick: add pipes and file redirectionDuncaen2020-05-151-5/+109
|
* mpick: fix off-by-one in parse_string (expression parsing) v0.5Duncaen2019-02-081-1/+1
|
* mpick: add -v to usageDuncaen2018-09-251-1/+1
|
* mpick: add -v flagDuncaen2018-09-251-2/+6
| | | | Closes: #137 [via git-merge-pr]
* mpick: Increase buffer for decoded header fieldMarcin Niestroj2018-08-301-1/+1
| | | | | | | | | | | | | | | When using: $ mlist maildir | mpick -t '"cc" ~~ "*vger.kernel.org*"' with a maildir containing mails from Linux Mailing List, not all messages were picked correctly. It turned out that the reason was small (100 bytes) buffer for header fields. Increase header field buffer to 4096, which is the most commonly used value. Closes: #133 [via git-merge-pr]
* mpick: don't allow EXPR_ANYSET with unmatched operatorDuncaen2018-02-051-2/+2
|
* mpick: add negationsDuncaen2017-10-261-0/+20
|
* styleLeah Neukirchen2017-08-311-13/+13
|
* mpick: make message numbers starting at oneDuncaen2017-04-271-0/+1
| | | | fixes #29
* mpick: allow string expressions on any headerDuncaen2017-04-171-17/+19
|
* mpick: prent -> parentLarry Hynes2017-03-301-1/+1
| | | | Closes: #23 [via git-merge-pr]
* mpick: fix subject cachingDuncaen2017-03-301-7/+12
|
* mpick: fix flagsDuncaen2017-03-301-6/+5
| | | | fixes #21
* mpick: fall-trough -> fall-throughLarry Hynes2017-03-301-4/+4
|
* mpick: add missing :R msglist typeDuncaen2017-03-301-0/+1
|
* mpick: open mail file only if necessaryDuncaen2017-03-301-4/+9
|
* mpick: fix warnings found by clang-analyzeDuncaen2017-02-231-11/+19
|
* mpick: add msglist from address supportDuncaen2017-01-201-1/+21
| | | | Fixes #9
* mpick: add kept expressionDuncaen2017-01-201-0/+4
|
* mpick: fix reuse of numDuncaen2017-01-201-13/+13
|
* mpick: shuffle for OpenBSD/FreeBSDChristian Neukirchen2016-09-051-2/+4
|
* mpick: fix subject expression, broke while normalizing styleDuncaen2016-07-301-2/+2
|
* mpick: fixesDuncaen2016-07-291-2/+2
|
* mpick: fix date expressionsDuncaen2016-07-291-1/+2
|
* mpick: add 'cur' variable to number expressionsDuncaen2016-07-291-14/+43
|
* mpick: add to and from string expressionsDuncaen2016-07-281-26/+56
|
* mpick: add info expression for message ids without filesDuncaen2016-07-281-0/+9
| | | | and mark them seen by default
* mpick: drop constChristian Neukirchen2016-07-281-9/+9
|
* mpick: add mmsg(7) style ranges to msglistChristian Neukirchen2016-07-281-2/+2
|