Leah Neukirchen
b41d2efa40
seq: blaze822_loop: reinitialize iter for each command line argument
2020-08-11 12:21:10 +02:00
Leah Neukirchen
b2a6e3dcc0
seq: blaze822_seq_load: remove dead assignment
...
Found by scan-build/clang 10.0.0
2020-08-10 22:26:45 +02:00
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]
2020-08-10 22:22:11 +02:00
Leah Neukirchen
e7442fcc72
seq: - now refers to the message on stdin, use .- for previous message
2020-07-03 17:26:48 +02:00
Leah Neukirchen
54283ebeee
seq: cleanup
2020-07-03 16:41:57 +02:00
Leah Neukirchen
dfc18e0040
seq: extract DT_* handling, follow symlinks
2020-03-08 17:20:23 +01:00
Leah Neukirchen
1ed8a0ac76
blaze822_loop: delay opening sequence to first use
2019-09-01 16:28:10 +02:00
Leah Neukirchen
fd675ef159
seq: blaze822_loop: fix leak
2019-04-14 14:54:20 +02:00
Leah Neukirchen
c5cd4df026
seq: sort dir file lists numerically
2019-01-10 16:43:25 +01:00
Leah Neukirchen
5e7c300b42
blaze822: blaze822_loop: use long as return type
2018-01-07 21:13:59 +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
Oliver Kiddle
0d2c71d2ef
seq: use of ^ should not produce a "parse" error when parent isn't found
...
Closes : #57 [via git-merge-pr]
2017-07-03 12:00:08 +02:00
Oliver Kiddle
8e833606c1
seq: parse_relnum: initial + in stop part of a message range selects relative to the start
...
So, e.g 4:+5 is the same as 4:9
Closes : #44 [via git-merge-pr]
2017-07-02 18:45:22 +02:00
Oliver Kiddle
7d66bb8db7
seq: parse_range: = _ and ^ default to being relative to cur instead of message 1
2017-07-02 18:44:55 +02:00
Oliver Kiddle
ef65274d43
seq: parse_relnum: fix for thread message syntax relative to . or $
...
With a message such as .^ specified, strtol() was used on the caret.
On Linux this worked by accident because strtol() doesn't return
an error but it fails on, e.g. FreeBSD. Furthermore, it was not
possible to specify relative offsets after $.
2017-07-02 18:44:24 +02:00
Leah Neukirchen
8649f9c225
seq: blaze822_seq_open: display error when opening the sequence failed
2017-06-29 15:04:57 +02:00
Duncaen
537282d6af
seq: fix selecting subthreads at the end of sequences and add test cases
2017-04-01 17:17:09 +02:00
Leah Neukirchen
2b4e3aa66d
clean up whitespace
2017-01-26 20:27:26 +01:00
Christian Neukirchen
b93b9303da
seq: avoid infinite loop in "mscan -n ."
2016-12-31 13:25:56 +01:00
Christian Neukirchen
b4a8090f75
seq: slurp the file instead of mmap
...
mmap is not robust when there are writes possible.
2016-10-05 14:44:36 +02:00
Ivy Foster
ca8cef1660
Add $MBLAZE environment variable to set profile location
...
As a side benefit, all callers of blaze822_home_file need only pass
the filename, so the base directory is set in only one place.
2016-09-01 18:50:20 -05:00
Christian Neukirchen
8d3fa82d82
seq: blaze822_home_file: guard missing entry in /etc/passwd or empty $HOME
2016-09-01 20:56:54 +02:00
Christian Neukirchen
0c381fa2cb
seq: blaze822_seq_cur: use void prototype
2016-09-01 15:42:35 +02:00
Christian Neukirchen
c9c5346e63
seq: add $MAILDOT to override the value of .
2016-08-09 18:55:29 +02:00
Christian Neukirchen
fd06b1d466
seq: exit with 2 on fatal parsing error
2016-08-08 14:23:34 +02:00
Christian Neukirchen
f3c6724830
seq: parse_parent: bump previndent size
2016-08-07 17:38:38 +02:00
Christian Neukirchen
1d67157f09
seq: add thread selectors
2016-08-05 20:05:24 +02:00
Christian Neukirchen
77d0498b6c
seq: fix message number reporting when using iterdir
2016-08-04 20:20:15 +02:00
Christian Neukirchen
41474c2e68
rename .santoku to .mblaze
2016-08-01 19:36:23 +02:00
Christian Neukirchen
2fc528e8ec
seq: don't crash when cur link doesn't exist
2016-07-31 16:53:23 +02:00
Christian Neukirchen
122e0f4426
seq: blaze822_seq_next: fix mseq -n .
2016-07-28 23:10:32 +02:00
Christian Neukirchen
f28e1c0158
seq: parse .: correctly
2016-07-28 20:41:31 +02:00
Christian Neukirchen
5d9663a980
guard DT_* usage
...
It's a shortcut anyway, just leave it out
2016-07-26 18:17:12 +02:00
Christian Neukirchen
aa31382413
seq: blaze822_seq_next: special case for plain "."
...
It may be outside the sequence, still resolve it.
2016-07-26 17:14:40 +02:00
Christian Neukirchen
2b81707c51
rename map to seq
...
The old terminology didn't make much sense to users.
2016-07-26 16:55:55 +02:00
Christian Neukirchen
1a4bcc0e6d
seq: rename iterfile to iterdir
2016-07-26 13:46:47 +02:00
Christian Neukirchen
be75b39123
seq: fix parsing of plain .
2016-07-24 23:10:58 +02:00
Christian Neukirchen
6c1e0d8d56
seq: add blaze822_loop1 for easier argument overriding
2016-07-23 00:25:18 +02:00
Christian Neukirchen
9a3d45785e
seq: blaze822_loop: drop - for stdin (conflicts with .-1)
2016-07-22 21:28:51 +02:00
Christian Neukirchen
1547d2a0e2
seq: clean up
...
Found by clang-analyzer.
2016-07-21 20:24:37 +02:00
Christian Neukirchen
31b4db3580
seq: iterate over dirs and cur/ of maildirs
2016-07-20 19:25:00 +02:00
Christian Neukirchen
6aad1db77c
seq: export blaze822_home_file
2016-07-20 14:10:47 +02:00
Christian Neukirchen
dd40aabd81
seq: guard misparse
2016-07-20 12:22:23 +02:00
Christian Neukirchen
9fc77fc4b8
seq: blaze822_loop: count file arguments too
2016-07-18 18:33:49 +02:00
Christian Neukirchen
a686b54594
seq: move map/cur to ~/.santoku
2016-07-18 18:32:12 +02:00
Christian Neukirchen
22f456a2a0
clean up header includes
2016-07-18 17:06:41 +02:00
Christian Neukirchen
08032f89ba
seq: import most parts of mseq, make blaze822_loop resolve ranges
2016-07-18 00:09:35 +02:00
Christian Neukirchen
796531b22d
mseq: extract code into seq.c
2016-07-17 21:51:41 +02:00