Commit Graph

27 Commits (master)

Author SHA1 Message Date
Michael Forney 1babebc12c mlist: use fixed-width integer types for struct linux_dirent64 d_ino and d_off 1 year 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 7cd43f4203 mlist: fix dangling else warning 4 years ago
Leah Neukirchen a5c77c71bc mlist: print number of matches when message selection is in place 4 years ago
Leah Neukirchen e4e15bb4f0 mflag: list: don't clobber f when flags and -i is used 4 years ago
Leah Neukirchen 079e423438 mlist: extract DT_* handling, follow symlinks
Closes #172.
4 years ago
Leah Neukirchen 582256618a move uc macro to blaze822_priv.h 4 years ago
Sebastien Marie a4b975e731 mlist: look at maildir/new too for messages
Closes: #165 [via git-merge-pr]
5 years ago
Leah Neukirchen af7d6750fd mlist: listarg: list empty Maildirs if no filtering took place 6 years ago
Leah Neukirchen 3ebd4cc3a3 mlist: list: update total count too 6 years ago
Leah Neukirchen 00a1382175 mlist: use a static buffer, clean up control flow 7 years ago
Leah Neukirchen 5f45b7d533 use appropriate integer types
Mainly found with clang -Wconversion -Wshorten-64-to-32.
7 years ago
Leah Neukirchen 66d0eff12f style 7 years ago
Leah Neukirchen 157542c3e7 mlist: extract squeeze_slash 7 years ago
Leah Neukirchen aee4d6e8e5 mlist: squeeze squeezing code
Thanks to quinq, who put all their heart in it.
7 years ago
Leah Neukirchen 011a13463f mlist: squeeze slashes from directory names
Closes #65.
7 years ago
Leah Neukirchen 7a2204049e mlist: print a total line with -i when useful 7 years ago
Leah Neukirchen 2b74b23cea mlist: fix usage output 7 years ago
Leah Neukirchen 2b4e3aa66d clean up whitespace 7 years ago
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.
7 years ago
Christian Neukirchen 6464ba5845 mlist: read directory names from stdin when used non-interactively
Closes #7.
7 years ago
Christian Neukirchen 7b4262e1f9 mlist: include <sys/syscall.h> only when required
Fixes build on cygwin.
8 years ago
Christian Neukirchen 3257fce1b8 mlist: add usage 8 years ago
Christian Neukirchen dab49a087d mlist: style 8 years ago
Christian Neukirchen c5d5033fdb mlist: cleanup 8 years ago
Christian Neukirchen 97ff31e580 mlist: add -X/-x ala mflag 8 years ago
Christian Neukirchen 9981ae56ec mlist: rename from list 8 years ago