Make sure remind -ppp preserves scanfrom even if it's today.

This commit is contained in:
Dianne Skoll
2025-08-11 16:55:20 -04:00
parent 68a4b23b6f
commit 9199ed5cf7
3 changed files with 13 additions and 1 deletions

View File

@@ -2500,7 +2500,7 @@ void WriteJSONTrigger(Trigger const *t, int include_tags, int today)
if (t->once != NO_ONCE) {
PrintJSONKeyPairInt("once", t->once);
}
if (t->scanfrom != today && t->scanfrom != NO_DATE) {
if (t->scanfrom != NO_DATE) {
PrintJSONKeyPairDate("scanfrom", t->scanfrom);
}
PrintJSONKeyPairDate("from", t->from);

View File

@@ -716,6 +716,11 @@ EOF
../src/remind -ppp - 1 Feb 2024 <<EOF >> ../tests/test.out 2>&1
TRANSLATE "\x03" "BREAK"
EOF
# SCANFROM should be preserved even if it is today
../src/remind -ppp - 1 Feb 2024 <<EOF >> ../tests/test.out 2>&1
REM SCANFROM 2024-02-01 MSG Preserve SCANFROM
EOF
# Languages
for i in ../include/lang/??.rem ; do
../src/remind -r -q "-ii=\"$i\"" ../tests/tstlang.rem 1 Feb 2024 13:34 >> ../tests/test.out 2>&1

View File

@@ -25210,6 +25210,13 @@ No reminders.
]
}
]
[
{
"translations":{"LANGID":"en"},"caltype":"monthly","monthname":"February","year":2024,"daysinmonth":29,"firstwkday":4,"mondayfirst":0,"daynames":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],"prevmonthname":"January","daysinprevmonth":31,"prevmonthyear":2024,"nextmonthname":"March","daysinnextmonth":31,"nextmonthyear":2024,"entries":[
{"date":"2024-02-01","filename":"-stdin-","lineno":1,"scanfrom":"2024-02-01","priority":5000,"body":"Preserve SCANFROM"}
]
}
]
Agenda pel dijous, 1 de febrer de 2024:
Language: ca