mirror of
https://salsa.debian.org/dskoll/remind.git
synced 2026-04-25 02:32:57 +02:00
Add purge mode.
This commit is contained in:
+3
-3
@@ -60,7 +60,7 @@ int DoRem(ParsePtr p)
|
||||
|
||||
if (trig.typ == NO_TYPE) return E_EOLN;
|
||||
if (trig.typ == SAT_TYPE) {
|
||||
PurgeEchoLine("%s\n", "### Cannot purge SATISFY-type reminders");
|
||||
PurgeEchoLine("%s\n", "#!PURGE Cannot purge SATISFY-type reminders");
|
||||
PurgeEchoLine("%s\n", CurLine);
|
||||
r=DoSatRemind(&trig, &tim, p);
|
||||
if (r) return r;
|
||||
@@ -100,10 +100,10 @@ int DoRem(ParsePtr p)
|
||||
if (PurgeMode) {
|
||||
if (trig.expired) {
|
||||
if (p->expr_happened) {
|
||||
PurgeEchoLine("%s\n", "### Next line may have expired, but contains expression");
|
||||
PurgeEchoLine("%s\n", "#!PURGE Next line may have expired, but contains expression");
|
||||
PurgeEchoLine("%s\n", CurLine);
|
||||
} else {
|
||||
PurgeEchoLine("### EXPIRED: %s\n", CurLine);
|
||||
PurgeEchoLine("#!PURGE EXPIRED: %s\n", CurLine);
|
||||
}
|
||||
} else {
|
||||
PurgeEchoLine("%s\n", CurLine);
|
||||
|
||||
Reference in New Issue
Block a user