mirror of
https://salsa.debian.org/dskoll/remind.git
synced 2026-04-23 01:32:58 +02:00
Add $DedupeReminders global variable.
This commit is contained in:
@@ -1315,6 +1315,14 @@ int TriggerReminder(ParsePtr p, Trigger *t, TimeTrig *tim, int dse, int is_queue
|
||||
}
|
||||
}
|
||||
|
||||
/* If this is a dupe and we are de-duping, do nothing */
|
||||
if (DedupeReminders) {
|
||||
if (ShouldDedupe(dse, tim->ttime, DBufValue(&buf))) {
|
||||
DBufFree(&buf);
|
||||
return OK;
|
||||
}
|
||||
}
|
||||
|
||||
/* If we are sorting, just queue it up in the sort buffer */
|
||||
if (SortByDate) {
|
||||
if (InsertIntoSortBuffer(dse, tim->ttime, DBufValue(&buf),
|
||||
|
||||
Reference in New Issue
Block a user