Commit Graph

28 Commits

Author SHA1 Message Date
midipix
b078f8c19e Maildir: support winnt/ntfs based systems (currently midipix).
Per the Maildir specification, the info (trailing) part of message
filenames is identified by a <colon><spec_version><comma>; however,
on WINNT/NTFS, a colon may not be part of a filename, therefore use
a <semicolon> instead. Since the default remains to use a <colon>,
all targets (other than those definining the __winnt__ macro)
should remain unaffected by this change.
2024-06-15 21:51:51 +02:00
Michael Forney
1babebc12c mlist: use fixed-width integer types for struct linux_dirent64 d_ino and d_off 2022-12-09 19:49:41 +01:00
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]
2020-09-06 16:34:56 +02:00
Leah Neukirchen
7cd43f4203 mlist: fix dangling else warning 2020-05-15 18:51:25 +02:00
Leah Neukirchen
a5c77c71bc mlist: print number of matches when message selection is in place 2020-04-30 23:45:35 +02:00
Leah Neukirchen
e4e15bb4f0 mflag: list: don't clobber f when flags and -i is used 2020-04-30 23:27:39 +02:00
Leah Neukirchen
079e423438 mlist: extract DT_* handling, follow symlinks
Closes #172.
2020-03-08 17:20:37 +01:00
Leah Neukirchen
582256618a move uc macro to blaze822_priv.h 2020-03-08 17:11:36 +01:00
Sebastien Marie
a4b975e731 mlist: look at maildir/new too for messages
Closes: #165 [via git-merge-pr]
2019-08-26 13:10:27 +02:00
Leah Neukirchen
af7d6750fd mlist: listarg: list empty Maildirs if no filtering took place 2018-01-01 18:44:59 +01:00
Leah Neukirchen
3ebd4cc3a3 mlist: list: update total count too 2018-01-01 18:44:36 +01:00
Leah Neukirchen
00a1382175 mlist: use a static buffer, clean up control flow 2017-10-29 22:08:32 +01: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
66d0eff12f style 2017-08-31 17:30:17 +02:00
Leah Neukirchen
157542c3e7 mlist: extract squeeze_slash 2017-07-12 22:31:01 +02:00
Leah Neukirchen
aee4d6e8e5 mlist: squeeze squeezing code
Thanks to quinq, who put all their heart in it.
2017-07-11 15:39:37 +02:00
Leah Neukirchen
011a13463f mlist: squeeze slashes from directory names
Closes #65.
2017-07-11 15:04:39 +02: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
Leah Neukirchen
2b4e3aa66d clean up whitespace 2017-01-26 20:27:26 +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
Christian Neukirchen
6464ba5845 mlist: read directory names from stdin when used non-interactively
Closes #7.
2016-12-13 15:21:00 +01:00
Christian Neukirchen
7b4262e1f9 mlist: include <sys/syscall.h> only when required
Fixes build on cygwin.
2016-09-08 15:40:48 +02:00
Christian Neukirchen
3257fce1b8 mlist: add usage 2016-07-26 21:59:26 +02:00
Christian Neukirchen
dab49a087d mlist: style 2016-07-25 21:00:41 +02:00
Christian Neukirchen
c5d5033fdb mlist: cleanup 2016-07-22 18:12:56 +02:00
Christian Neukirchen
97ff31e580 mlist: add -X/-x ala mflag 2016-07-22 18:11:38 +02:00
Christian Neukirchen
9981ae56ec mlist: rename from list 2016-07-20 14:08:37 +02:00