Dianne Skoll
7cfb75e3b3
Save filename when queueing reminders. Also, use original trigger structure when triggering.
...
Before, we'd lose the priority and msgprefix() would mess up.
2024-02-02 14:18:55 -05:00
Dianne Skoll
72d10178bf
Mass-update copyright year to 2024.
2023-12-31 12:05:03 -05:00
Dianne Skoll
861ce34022
Clarify logic.
2023-12-25 10:16:59 -05:00
Dianne Skoll
3df2b72175
Simplify logic for updating of number of queued reminders.
2023-12-18 14:48:49 -05:00
Dianne Skoll
e7ac4f95be
Issue a spontaneous NOTE queued response only if we actually de-queue a reminder.
2023-12-18 14:44:41 -05:00
Dianne Skoll
bb516946be
If we de-queue a reminder without issuing it, send a NOTE queued %d message in server mode.
2023-12-15 14:16:26 -05:00
Dianne Skoll
1bfd7761bc
Use EXIT_FAILURE / EXIT_SUCCESS consistently.
2023-12-10 10:42:26 -05:00
Dianne Skoll
de9cb1d0a3
Use symbols STDIN_FILENO, etc.
2023-12-10 10:38:42 -05:00
Dianne Skoll
b2d32b514a
Catch SIGCONT to force it to interrupt the select() system call.
2023-12-09 19:12:27 -05:00
Dianne Skoll
6e53fd6924
Refactor code: Replace SystemTime(x)/60 with MinutesPastMidnight(x)
2023-12-09 10:41:03 -05:00
Dianne Skoll
d6e66ee1e6
Tighten test for removing very old reminders from queue.
2023-12-09 10:25:50 -05:00
Dianne Skoll
a49532b9c5
Remove non-triggered but expired reminders from the queue.
2023-12-08 14:02:29 -05:00
Dianne Skoll
57d87f4caf
Better logic for closing stdin/stdout/stderr if we fork.
2023-12-06 16:39:13 -05:00
Dianne Skoll
ca795a352a
Add the $MaxLateMinutes system variable.
...
Don't trigger a timed reminder if it's more than $MaxLateMinutes past
the trigger time (for example, if the computer has hibernated and then
been awoken.)
2023-12-03 17:16:48 -05:00
Dianne Skoll
e3ec6565e9
Add support for -k: option --- applies command only to *queued* reminders.
2023-03-13 15:16:24 -04:00
Dianne Skoll
2f196e3c9f
Update copyright year. :)
2022-12-30 13:43:28 -05:00
Dianne Skoll
0cea410529
Add a bunch of: "SPDX-License-Identifier: GPL-2.0-only" comments.
2022-12-26 14:24:33 -05:00
Dianne Skoll
a1eafb2c89
Add NOQUEUE modifier; reverse order of args to soleq and make second arg optional (defaults to today())
2022-12-23 11:04:18 -05:00
Dianne Skoll
387125d983
Start fixing terminology: Julian becomes DSE
...
Remind's so-called "Julian" date is not a true Julian date.
It's really the number of days since the Remind Epoch, so rename
to DSE (Days Since Epoch)
2022-12-21 13:14:00 -05:00
Dianne Skoll
1ae00ce778
No need to reset NumTriggered.
2022-09-21 19:11:30 -04:00
Dianne Skoll
a01e05c1db
Fix bug introduced in commit 98c5bf511e:
...
Don't print a banner when issuing a queued reminder.
2022-09-21 18:17:25 -04:00
Dianne Skoll
8405ea6c53
Add note about how to kill remind in queue mode.
2022-08-06 08:34:16 -04:00
Dianne Skoll
4e80ce1159
Don't make SIGINT kill a background process; don't call printf from a signal-handler; use sigaction instead of signal
2022-08-05 22:04:44 -04:00
Dianne Skoll
1731710ef2
Minor reformatting of source.
2022-05-19 09:01:11 -04:00
Dianne Skoll
878ab1a8bc
Fix a bunch of spelling mistakes found by Jens Schleusener
2022-03-15 14:40:46 -04:00
Dianne Skoll
4d17494371
Bump copyright date.
2022-03-14 21:12:20 -04:00
Dianne Skoll
d0112adb08
Sleep with higher precision in -z0 mode.
2021-12-28 10:32:06 -05:00
Dianne Skoll
34409f7a7d
Update copyright year.
2021-04-02 10:43:54 -04:00
Dianne Skoll
efa4816371
Properly-form JSON output.
2020-03-03 10:36:01 -05:00
Dianne Skoll
cd39480a98
Remove extraneous spaces.
2020-02-27 16:50:44 -05:00
Dianne Skoll
281a1a206e
Implement JSONQUEUE daemon command.
2020-02-27 15:18:23 -05:00
Dianne Skoll
6b991cdf9c
Refactor saving of trigger info.
2020-02-23 11:38:17 -05:00
Dianne Skoll
fbbffb4672
Bump version to 3.1.18 and copyright year to 2020.
2019-12-30 11:15:00 -05:00
Dianne Skoll
3180c781ed
Start working on making bits of the trigger and time trigger introspectable.
2019-12-28 16:37:47 -05:00
Dianne Skoll
632152e8b6
Remember the last trigger and time trigger.
2019-12-28 16:24:16 -05:00
Dianne Skoll
3095fd7e4a
Enable warning-free compilation even with -Wextra.
2019-11-04 16:35:14 -05:00
Dianne Skoll
9841cdd355
When dumping queue contents, omit expired reminders.
2018-11-28 14:27:40 -05:00
Dianne Skoll
32fb1706c8
Fix a few more SystemTime calls.
2018-11-04 13:47:18 -05:00
Dianne Skoll
c9e6cd9796
Queue should use actual clock in computer.
2018-11-04 13:45:23 -05:00
Dianne Skoll
81677528a5
In -z0 mode, wake up exactly on the minute.
2018-11-04 13:39:00 -05:00
Dianne Skoll
52d252723f
Depenguinization.
2018-11-04 10:56:47 -05:00
Dianne Skoll
011a95ebbd
Format the queue output better.
2018-04-19 14:01:09 -04:00
Dianne Skoll
7d6617d21e
Finish adding queue feature.
2018-04-18 10:57:51 -04:00
Dianne Skoll
f684baeeb9
Add a QUEUE daemon command to dump the queue.
2018-04-18 10:43:49 -04:00
David F. Skoll
29c8475ea9
s/David/Dianne/
2015-04-17 02:07:18 -04:00
David F. Skoll
643f394e6a
Bug fix: If there are no tags, emit a "*" when doing NOTE reminder ...
2010-10-12 15:39:08 -04:00
David F. Skoll
6d047c2856
Use a dynamic buffer to accumulate tags instead of a special-purpose data structure.
2010-09-29 14:07:14 -04:00
David F. Skoll
be86746685
Support multiple TAGs in a single REM.
2010-09-23 15:47:22 -04:00
David F. Skoll
a1faa8d804
Finish up Purge Mode:
...
o Make it recognize constant expressions (yay!)
o Make it not add a blank line to end of *.purged files.
o Make it nuke #!P comments in the source files.
2010-04-21 09:02:25 -04:00
David F. Skoll
aae76207ec
Fix bug in SCHED function calculation (RT #15644 )
2009-09-06 18:36:34 -04:00